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. |
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 |
All times are GMT -5. The time now is 10:38 AM. |