码迷,mamicode.com
首页 > 其他好文 > 详细

samba 配置

时间:2018-04-18 11:45:57      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:samba   linux   

配置文件
[root@sg ~]# cat /etc/samba/smb.conf | grep -vE "^\s*#|^\s*;|^\s*$"
[global]
        workgroup = WORKGROUP
        server string = Samba Server Version %v
        security = user
        passdb backend = tdbsam
        load printers = no
        cups options = raw
        printing = bsd
        printcap name = /dev/null
[design]
       comment = Network Logon Service
       path = /mnt/data/design
       guest ok = yes
       valid users = design
       browseable=no
       writable = yes
[qa]
        comment = qa packages
        path = /mnt/data2/qa
        guest ok = yes
        valid users = qa
        browseable = no
        writable = yes
[qa_read]
        comment = qa packages
        path = /mnt/data2/qa
        valid users = q
        guest ok = yes
        browseable = no
        read only = yes
[release]
        comment = packages
        path = /mnt/data2/qa/release
        valid users = cs
        guest ok = yes
        browseable = no
        read only = yes
[market]
        comment = market doc
        path = /mnt/data2/market
        guest ok = yes
        valid users = market
        browseable = no
        writable = yes

创建用户

useradd -s /sbin/nologin market
smbpasswd -a market
输入密码

创建共享文件夹

mkdir -p /mnt/data2/market
chown -R market.market /mnt/data2/market

启动samba

/etc/init.d/smb restart

samba 配置

标签:samba   linux   

原文地址:http://blog.51cto.com/chaoyuezhangsan/2104754

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!