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

Notices


Reply
  Search this Thread
Old 08-24-2011, 08:41 AM   #1
dragos2
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 pam_succeed.if.so user in group group_name seems to be ignored. Any idea of why ?

cat /etc/pam.d/samba
#%PAM-1.0
auth required pam_nologin.so
auth include system-auth
account include system-auth
session include system-auth
password include system-auth

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

account required pam_unix.so
account sufficient pam_succeed_if.so uid < 500 quiet
account required pam_permit.so

password requisite pam_cracklib.so try_first_pass retry=3
password sufficient pam_unix.so md5 shadow nullok try_first_pass use_authtok
password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so


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

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

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no

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

Regards,

Dragos

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


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration