I'm looking to have my users use their local accounts on my Linux servers without the need to create a separate user/password for Samba. Is there any way to use the /etc/passwd file as the the authentication mechanism when they go to map a drive? Can this be done using PAM?

I don't want to use AD as the domain ID's are different than those on the Linux servers.

Any advice/direction would be greatly appreciated.

  • 1
    If AD/Linux authentication is something you'd like later, you might check into Likewise Open – Matt Simmons Jul 22 '09 at 16:43

samba cannot just use passwd/shadow, because several additional attributes are to be stored.

But you can setup samba with tdbsam-backend and let samba synchronise the passwords.

Or you setup an open ldap-backend for system and samba auth. But this is not that trivial ....

  • 1
    +1 - Sometimes, the answer is 'no' :) – romandas Jul 22 '09 at 19:32

You might take a look at this resource: http://www.devshed.com/c/a/Administration/Authentication-in-Samba/

it seems to cover exactly what you're looking for.

  • It covers it, but not without some additional digging. – romandas Jul 22 '09 at 19:33
  • I suppose the extra work makes my answer unhelpful, considering the person who asked finished the question requesting a direction to be pointed in. meh. – Matt Simmons Jul 22 '09 at 19:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.