Linux serverNETWORK ADMINISTRATIONS

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.

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *