Samba Tutorial (Centos 7) – samba share with password
samba – how to share folder with password protected on Centos 7.
step :
1) sudo gedit /etc/samba/smb.conf
[centos_share]
path = /var/www/html/
browsable = yes
writable = yes
guest ok = yes
read only = no
create mode = 0777
directory mode = 0777
valid user = moko
2) sudo smbpasswd -a moko
3) sudo systemctl restart smb.service
sudo systemctl restart smb.service
4) try to open your shared folder. it will display dialogbox to enter username and password.
centos 7