LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-21-2009, 12:15 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Rep: Reputation: 57
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.

Last edited by frenchn00b; 11-21-2009 at 12:17 AM.
 
Old 11-21-2009, 06:56 PM   #2
Sum1
Member
 
Registered: Jul 2007
Distribution: Fedora, CentOS, and would like to get back to Gentoo
Posts: 332

Rep: Reputation: 30
Quote:
Originally Posted by frenchn00b View Post
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
 
Old 11-22-2009, 02:48 AM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by Sum1 View Post
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?
 
Old 11-22-2009, 04:39 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XP clients won't login to samba domain beaker15 Linux - Server 3 02-22-2008 10:48 PM
Samba PDC: PC clients cannot change passwords DimaA Linux - Software 0 01-10-2007 05:17 PM
GAIM/AIM for clients and a linux based server chrisk5527 Linux - General 2 02-09-2004 06:53 PM
Changing Samba Passwords from 95/98 Clients? kofi Linux - Software 6 09-24-2003 01:01 AM
Can't login to Samba from my clients Madrinator Linux - Networking 2 05-19-2003 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration