Samba share password protected

Posted On // Leave a Comment

Hi folks,


I'm locally playing around with samba and I've been using it for quite a time now as local public share. Now I want to use one directory as privat password protected share. I already googled and found a lot configs for making the home directories shareable. But I don't want to share my home directories, I want to share a specific folder under /storage/. As far as I understood I have to create a user first, and then give the user a samba password with this command:

useradd -m -g users USERNAME passwd USERNAME smbpasswd -a USERNAME

Then I have to make this share:

[SHARENAME] path = /storage/myshare public = no writable = yes valid users = USERNAME


Is that correct? I ask here to get sure, because I don't want to f*ck up my config :)


http://ift.tt/1dvHQ0Z

0 comments:

Post a Comment