deepin开启SMB共享配置
smb.conf deepin开启SMB共享配置
[global]
workgroup = WORKGROUP
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
# new domain.
server role = standalone server
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
create mode = 0766
force create mode = 0766
directory mode = 0777
force directory mode = 0777
usershare allow guests = yes
#guest account = guest
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[share]
comment = deepin share SYNC Dir
path = /media/wangke/SYNC
browseable = yes
writable = yes
guest ok = yes
public = yes
smb.conf 文件复制到 /etc/samba/
#smb.conf 文件复制到 /etc/samba/
sudo cp -r -f ./smb.conf /etc/samba/smb.conf