I am configuring a Samba share on my Debian server and I'd like to create some simple
username:password accounts that could access the shares without having to add UNIX users to my machine.
Can I do that ?
Thanks a lot in advance !
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Here is a good explanation: http://ubuntuforums.org/showthread.php?t=825686
"The reason you need a unix account is so samba can restrict access to files according to permissions set on the filesystem. If the unix user doesn't have local permission to read a file, the samba user with the same name won't be able to read it either, regardless of the share's settings. I think you can disable the unix account, as long as the samba user is listed in /etc/passwd with a UID."
you can map multiple virtual users to the "nobody" unprivileged unix account:
more details here: http://htyp.org/smbusers
so it would look like:
nobody = user1 user2 user2
conversely, you could add these unix accounts and set /sbin/nologin as the shell.