首页 > 其他 > 详细

S-a-m-b-a服务器配置文件

时间:2020-05-05 22:14:43      阅读:59      评论:0      收藏:0      [点我收藏+]

/etc/samba/smb.conf备份,如果想访问记得加//IP

# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run testparm to verify the config is correct after
# you modified it.

[global]
        workgroup = SAMBA
        security = user

        passdb backend = tdbsam

        printing = cups
        printcap name = cups
        load printers = yes
        cups options = raw

[homes]
        comment = Home Directories
        valid users = yuan
        browseable = No
        read only = No
        inheritacls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = Yes

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = root
        create mask = 0664
        directory mask = 0775
[common]
        comment =Common share
        path = /home/samba
        browseable = yes
        guest ok = no
        writable = yes
[time]
        comment = Ashes of Time
        path = /home/yuan/myshare
        valid users = yuan
        write list = yuan
        printable = no 
        create mask = 0775
        directory mask = 0775
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @printadmin root
        force group = @printadmin
        create mask = 0664
        directory mask = 0775

 

S-a-m-b-a服务器配置文件

原文:https://www.cnblogs.com/timingstarts/p/12833011.html

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