LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How / can we have all passwords/login of clients based on the SAMBA server? (https://www.linuxquestions.org/questions/linux-server-73/how-can-we-have-all-passwords-login-of-clients-based-on-the-samba-server-770567/)

frenchn00b 11-21-2009 12:15 AM

How / can we have all passwords/login of clients based on the SAMBA server?
 
Hello,

I have a box server, running samba and nfs.

the several linux boxes clients are with /etc/fstab mounting /home
the problem is that the chown 100X:100X is based and can change on the machine.

Can we bind the /etc/passwd and /etc/shadow to the samba password/logings for those linux clients?
so that : one unique password everywehere
then whatever users will have same password on anymachine. This means everyone can check his mails on any machines.

Sum1 11-21-2009 06:56 PM

Quote:

Originally Posted by frenchn00b (Post 3764641)
Can we bind the /etc/passwd and /etc/shadow to the samba password/logings for those linux clients?
so that : one unique password everywehere

Yes, use smbpasswd

frenchn00b 11-22-2009 02:48 AM

Quote:

Originally Posted by Sum1 (Post 3765284)
Yes, use smbpasswd

I made a picture of what I would be pleased to achieve:
http://yellowprotoss.ye.funpic.org/w...ver_logins.JPG

for clarity. is this possible with samba to change the /etc/shadow and /etc/passwd automatically which are located on the server?

btmiller 11-22-2009 04:39 PM

You might want to look at centralizing user authentication with LDAP. It works pretty well for me at work. I am not sure if there's any way to do it directly with SAMBA (I think running a domain controller might only be supported in the next version), however SAMBA can authenticate credentials against LDAP.

Long and short, if you need to refer to /etc/passwd you're already toast. What you need to do is configure your system to authenticate against a centralized source (usually LDAP these days). This is easily done by setting up the central service, modifying /etc/nsswitch.conf and (possibly) uysing some NSCD and/or PAM magic to tell programs such as passwd, chsh, etc. about the change.


All times are GMT -5. The time now is 08:11 PM.