LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-15-2003, 02:34 AM   #1
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
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.
 
Old 09-15-2003, 02:52 AM   #2
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Original Poster
Rep: Reputation: 47
nevermind guys and girls, I just remembered how to do it during a smoke break
 
Old 09-15-2003, 03:18 AM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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...
 
Old 01-23-2008, 05:38 AM   #4
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Rep: Reputation: 31
@iceman47

Can you please tell the workaround?...I am want to perform the same scenario....
 
Old 01-23-2008, 06:14 AM   #5
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Original Poster
Rep: Reputation: 47
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).

Last edited by iceman47; 01-23-2008 at 08:20 AM. Reason: confusing information - removed
 
Old 01-23-2008, 06:17 AM   #6
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Original Poster
Rep: Reputation: 47
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
 
Old 01-23-2008, 06:55 AM   #7
sachinghai
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
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 ?
 
Old 01-23-2008, 08:31 AM   #8
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Original Poster
Rep: Reputation: 47
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
passwd shadow problem rblampain Linux - Distributions 2 10-04-2005 12:00 AM
It is ok if i unshadow the /etc/passwd and /etc/shadow Paxmaster Linux - Software 1 01-12-2005 10:07 PM
mismatch with /etc/passwd and /etc/shadow AngryKeebler Linux - General 1 07-23-2004 03:42 PM
/etc/passwd or /etc/shadow? tiger7007 Linux - Security 2 03-21-2004 04:41 AM
How to authenticate SAMBA against /etc/shadow or passwd ?? freunda Linux - General 3 03-12-2002 04:34 PM


All times are GMT -5. The time now is 12:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration