Add the following to the bottom of the /etc/samba/smb.conf
[sharename]
comment = a comment
writable = yes or no
locking = no
path = /path/to/shared/folder
public = yes or no
valid users = username
Uncomment the line in the smb.conf:
security = user
You need to add an existing user to the sambashare group:
sudo usermod -g sambashare username
Create a samba password for the user - the -a is only needed the first time you set up a password for a new samba user:
sudo smbpasswd -a username
Restart SAMBA:
sudo smbd -D
sudo nmbd -D
No comments:
Post a Comment