首页 > 其他 > 详细

samba 配置

时间:2018-04-18 11:30:57      阅读:215      评论:0      收藏:0      [点我收藏+]
配置文件
[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 配置

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!