Linux中samba服务器权限配置smb.conf--仅限自己可读可写

scm@linux:~$ cd /etc/samba/
scm@linux:/etc/samba$ ls
gdbcommands  smb.conf  tls

scm@linux:/etc/samba$ sudo vim smb.conf

[sudo] password for scm:

[scm]
   comment = scm
   browseable = yes
   path = /home/scm
   valid users = scm
   printable = no
   write list = scm
   create mode = 0664
   force create mode = 0664
   directory mode = 0775
   force directory mode = 0775
scm@linux:/etc/samba$ sudo smbpasswd -a scm
New SMB password:
Retype new SMB password:
Added user scm.

scm@linux:/etc/samba$ sudo systemctl restart smbd
scm@linux:/etc/samba$

你可能感兴趣的:(Linux中samba服务器权限配置smb.conf--仅限自己可读可写)