hmmmmm... well I've got Samba working kind of as I'd like (one user with a password). How sensible it is or secure it is is debatable.
The Authentication section of
/etc/samba/smb.conf now has:
Code:
security = user
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
And the share is like:
Code:
[share]
comment = My Shares
path = /path/to/my/share
browsable = yes
guest ok = no
read only = no
create mask = 0755
valid users = smbuser
I then added a user without a logon (no idea if that is required) and add a samba password:
Code:
sudo useradd -s /sbin/nologin smbuser
sudo smbpasswd -a samba
I'm not actually much of a Samba fan so I'd stil like to know the second part to my question, if anyone could provide me with the alternatives for sharing a folder over a network along the lines of Samba and SSHFS?