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

samba基本配置

时间:2017-06-14 18:07:46      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:cup   设置密码   useradd   基本   file   dns   options   log   vim   

安装启动不用说了

vim /etc/samba/smb.conf

workgroup = WORKGROUP

server string = Samba Server %v
netbios name = samba.***.com

security = user
encrypt passwords = true
map to guest = bad user
guest account = nobody

log file = /var/log/samba/%m.log
max log size = 50

load printers = yes
cups options = raw
dns proxy = no

unix charset = UTF-8
dos charset = CP936

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[doc]
comment = doc
path = /data/samba/doc
valid users = doc
browsable =yes
writable = yes
guest ok = yes
read only = no
create mask = 0777
security mask = 0777
directory mask = 0777
force create mode = 0777
directory security mask = 0777

上面是基本配置

要创建用户

groupadd -g 1003 doc

useradd -u 1003 -g 1003 doc

配置密码:

smbpasswd -a doc

设置密码

 

samba基本配置

标签:cup   设置密码   useradd   基本   file   dns   options   log   vim   

原文地址:http://www.cnblogs.com/mikeluwen/p/7009955.html

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