LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-17-2004, 09:20 AM   #1
Qauzzix
LQ Newbie
 
Registered: Jul 2004
Location: Reykjavík, Iceland
Distribution: Gentoo, Debian, Fedora
Posts: 2

Rep: Reputation: 0
Samba and local passwords


Hi.

I'm trying to configure my Samba server to use the users and passwords that is found in /etc/passwd and /etc/shadow instead of using the default /etc/samba/smbpasswd.

I have googled for this with no luck. I have found posts that say that doing this is impossible but I know for a fact that it is because this was working a couple of days ago on the same server. And I found a person thats says that its working with its samba-3.0.5.

I am running samba-3.0.4-1.FC1 and I think I was using samba-2.0.7 before the upgrade

Yesterday the server head over 530 in uptime. I upgraded from RedHat 8.0 to Fedora Core 1 a couple of months ago but didnt restart. When the computer restarted yesterday no user could open their samba share on the server.

I would settle for a way to transfer /etc/shadow password hashes to the /etc/samba/smbpasswd file. I need a way so I dont have to edit all the passwords manually and ask every user to come over to my office so I could change their passwords.

Last edited by Qauzzix; 08-17-2004 at 10:12 AM.
 
Old 08-17-2004, 01:21 PM   #2
Qauzzix
LQ Newbie
 
Registered: Jul 2004
Location: Reykjavík, Iceland
Distribution: Gentoo, Debian, Fedora
Posts: 2

Original Poster
Rep: Reputation: 0
I FIXED IT.

Many hours and finally it worked. I was looking at the wrong place. It wasnt the samba configuration file but pam authentication. I have to change /etc/pam.d/samba and here is what I did. I have this will come in handy for other that have the same problem as I did:

The pam file that uses smbpasswd file looks like this:
# pam_smbpass.so authenticates against the smbpasswd file
auth required pam_smbpass.so nodelay
account required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
password required pam_smbpass.so nodelay smbconf=/etc/samba/smb.conf

I took out the session and password and change auth to the same as account and it worked. Now the files looks just like this:
auth required /lib/security/pam_stack.so service=system-auth
account required /lib/security/pam_stack.so service=system-auth
 
  


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
Samba passwords mheymann Linux - Networking 1 08-18-2005 05:36 AM
Sync MySQL passwords with local account passwords? turbine216 Linux - Software 2 02-18-2005 03:15 AM
Samba Passwords klatch Linux - Newbie 2 03-28-2004 05:18 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM
Samba passwords cic Linux - Networking 3 08-13-2002 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:21 PM.

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