samba基本配置
安装启动不用说了
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
设置密码