Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-24-2011, 08:41 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Samba PAM authentication config

Dear all,

I am trying to configure Samba with PAM on CentOS 5.6. to allow only a certain group to login via PAM.

The user in group group_name seems to be ignored. Any idea of why ?

cat /etc/pam.d/samba
auth required
auth include system-auth
account include system-auth
session include system-auth
password include system-auth

[root@localhost pam.d]# cat system-auth
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required
auth sufficient nullok try_first_pass debug
auth requisite user ingroup group_name
auth requisite uid >= 500 quiet
auth required

account required
account sufficient uid < 500 quiet
account required

password requisite try_first_pass retry=3
password sufficient md5 shadow nullok try_first_pass use_authtok
password required

session optional revoke
session required
session [success=1 default=ignore] service in crond quiet use_uid
session required

$ cat /etc/samba/smb.conf
security = user
passdb backend = tdbsam
cups options = raw
username map = /etc/samba/smbusers

comment = Home Directories
browseable = no
writable = yes
valid users = %S

comment = All Printers
path = /var/spool/samba
browseable = no

comment = Samba
path = /
; writeable = No
; browseable = yes
valid users = dragos, dragos2



Last edited by dragos2; 08-24-2011 at 08:43 AM.


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
TightVNC Server with PAM authentication against a Samba PDC - Possible? Audio Linux - Server 0 12-18-2008 12:39 PM
Getting pam working with samba (with active directory authentication) kcorupe Linux - Server 3 05-02-2008 11:04 AM
Samba authentication through PAM with MySQL Problem limty Linux - Server 2 12-31-2007 08:54 AM
PAM config for SAMBA Micah Linux - Networking 3 02-22-2004 02:59 AM
samba and remote PAM authentication chupacabra Linux - General 2 11-08-2002 01:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration