LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-23-2008, 05:02 AM   #1
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
Question Using /etc/passwd in Samba


Is there a way or parameter that can be set in /etc/samba/smb.conf that will make SAMBA use /etc/passwd file instead of /etc/samba/smbpasswd file. Thus I want authentication to take place through /etc/passwd and not /etc/samba/smbpasswd
 
Old 01-23-2008, 07:06 AM   #2
Dinithion
Member
 
Registered: Oct 2007
Location: Norway
Distribution: Slackware 14.1
Posts: 438

Rep: Reputation: 56
I don't think that is possible because a password hash can't be "decrypted". They way unix password work is that you generate a password hash, and add a salt. When a user later is logging in, the authentication algorithm takes the password and, generates the same hash with salt and compares it with the shadow-password.

When it comes to samba, the password is already encrypted from the client, and all samba does is compare the two hashes. So in order to make that work, samba would have to crack the password from the client and generate a unixpassword and compare it. I'm not 100% sure about this, but I'm pretty sure it doesn't work.
 
Old 01-23-2008, 07:18 AM   #3
Zinake
LQ Newbie
 
Registered: Dec 2005
Distribution: Ubuntu
Posts: 13

Rep: Reputation: 0
I have been doing a lot of reading the past few weeks about Samba and setting up a network share using Samba so I am not sure where I found the information at, but you have the ability to get Samba to update the users password if they update their smbpassword. That way everything stays the same.

If I can find the info, I'll post it.
 
Old 01-23-2008, 07:32 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
You can use the unix passwd sync feature of samba to have samba update user passwords when the samba password is changed. That being said, there is no way to have samba directly authenticate against /etc/passwd due to the differing password hash formats.
 
Old 01-23-2008, 07:57 AM   #5
paragkalra
Member
 
Registered: Sep 2006
Location: Nagpur, Maharashtra, India
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Posts: 221

Original Poster
Rep: Reputation: 31
Red face

Hello all,

I tried the workaround suggested at following link:
http://www.linuxquestions.org/questi...cshadow-92915/

Still no fruits. Any suggestions?
 
Old 01-23-2008, 08:41 AM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
That thread specifically says (as I did) that you cannot authenticate against /etc/passwd and /etc/shadow. You will need to add the users to samba, but you can have samba keep the unix passwords in sync.
 
  


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
samba syncing with /etc/passwd and /etc/shadow iceman47 Linux - Software 7 01-23-2008 08:31 AM
Swat uses PAM but changes linux passwd not samba passwd Peter@KKVS Linux - Networking 0 11-26-2006 04:20 AM
unencrypted passwd samba-client 3.0.4 JimBass Linux - Networking 3 07-06-2004 11:10 AM
Samba guests and changes in /etc/passwd krajzega Linux - Networking 1 03-08-2004 07:53 AM
Samba blew my passwd? oneiltj Linux - Software 2 01-18-2003 12:47 PM


All times are GMT -5. The time now is 01:54 AM.

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