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 = 0775scm@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$