LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba syncing with /etc/passwd and /etc/shadow (https://www.linuxquestions.org/questions/linux-software-2/samba-syncing-with-etc-passwd-and-etc-shadow-92915/)

iceman47 09-15-2003 02:34 AM

samba syncing with /etc/passwd and /etc/shadow
 
Is there any way samba can get the userinfo automaticly from /etc/passwd and /etc/shadow?
I have aprox. 150 users and it would be much easier for me to just add the users to the system than add them in samba too.

iceman47 09-15-2003 02:52 AM

nevermind guys and girls, I just remembered how to do it during a smoke break :)

win32sux 09-15-2003 03:18 AM

it would be great if you could post how you did it for the benefit of people in the future who have a similar problem and run into this thread...

paragkalra 01-23-2008 05:38 AM

@iceman47

Can you please tell the workaround?...I am want to perform the same scenario....

iceman47 01-23-2008 06:14 AM

Just add (uncomment these days probably) security = user to the smb.conf file and reload your samba server (/etc/init.d/samba reload on most Linux distro's).

iceman47 01-23-2008 06:17 AM

Btw, this just _has_ to be the longest time between initial post and follow up I've ever done.
Good to see this site is still active, maybe I should come back more often :)

sachinghai 01-23-2008 06:55 AM

Hi, this is sachin; parag's collegue. This is what we did:

We commented the option "security=User" in cat /etc/samba/smb.conf file.
and added following enteries:


[SAM]
comment = Mary's and Fred's stuff
path = /home/sachin
valid users = sachin
public = no
writable = yes
printable = no

this time we are not even being able to login.

Any ideas ?

Can you give your contact number ?

iceman47 01-23-2008 08:31 AM

Maybe I wasn't clear enough, my bad. Full explantation:

Samba can't directly authenticate against /etc/passwd, but it is possible (and this is the 'workaround') to authenticate against an ldap server installed locally on the system (or somewhere else).
As users on the local box can also authenticate against the same ldap server (though pam), you have a centralized mechanism for adding users to both your linux server as your samba server.

Guides you'll want to use:

http://gentoo-wiki.com/HOWTO_LDAPv3
http://gentoo-wiki.com/HOWTO_SAMBA-L...Time_antivirus)
http://www.gentoo.org/doc/en/ldap-howto.xml ("Code Listing 3.2: /etc/pam.d/system-auth")

Have fun ;)


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