Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Samba and Pam
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Vlad
Apprentice
Apprentice


Joined: 09 Apr 2002
Posts: 264
Location: San Diego, California

PostPosted: Wed Jun 05, 2002 9:47 pm    Post subject: Samba and Pam Reply with quote

I know I'm not the only one with this problem, but have been unable to find any solutions.

I have a samba server on a computer. I use it to share files with my windows clients. Everyone can access the share, change the files, etc, just fine, but I see this message everytime someone accesses the share:

From /var/log/log.smbd:
Code:

[2002/06/06 14:00:35, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User smbuser !
[2002/06/06 14:00:36, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User smbuser !
[2002/06/06 14:03:26, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User smbuser !
[2002/06/06 14:18:07, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User smbuser !
[2002/06/06 14:22:17, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User smbuser !


I've tried altering the /etc/pam.d/samba but with no luck. I've also fiddled with options in /etc/samba/smb.conf (like pam restrictions, security=share/user) and still no luck.

Now, /etc/samba/smbpasswd has an entry for the smbuser and /etc/samba/smbusers has the appropriate unix to samba users mapped.

So I'm left clueless. Everything looks like it should work fine. And from the error messages, I'm assuming it's a problem with pam<-->samba (/etc/pam.d/samba). Incase anyone wants to look, here's a copy of that file:
(uncommented settings were tested and failed)
Code:

# pam_smbpass.so authenticates against the smbpasswd file

#auth      optional     /lib/security/pam_pass.so nullok shadow nodelay
#account   optional     /lib/security/pam_pwdb.so nodelay

Auth    required        /lib/security/pam_smbpass.so nullok shadow
Account required        /lib/security/pam_smbpass.so

#auth       required     /lib/security/pam_smbpass.so nodelay nullok shadow
#account    required     /lib/security/pam_pwdb.so audit nodelay
#session    required     /lib/security/pam_pwdb.so nodelay
#password   required     /lib/security/pam_smbpass.so nodelay smbconf=/etc/samba
/smb.conf
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum