Relevant sections from my /etc/samba/smb.conf
Code:
unix password sync = no
[...]
[DEED]
path = /home/kuo/deed
writable = no
[TRANSFER]
path = /home/kuo/tempo/transfer
writable = yes
I have two samba shares - one is read only, and one is read-write.
In addition to creating those very simple modifications to smb.conf, I also had to manually add one user to samba users with:
Note that you can list the samba users with:
I did things this way to minimize my effort and headaches. When connecting to the share, the end user must enter the user and password ("kuo" is the user, the password is what I entered and I purposefully do NOT sync it with the *nix password).
If you want to do fancier authentication, you'll have to do fancier configuration.
My recommendation, though, is to create a new linux user and do "smbpasswd -a NEWUSERID" to add it (only) to smb users. Unless you're okay with sharing bob's samba password with everyone (remember that if you do NOT sync the samba passwords with the *nix passwords, they can be different).