access.conf with pam.d

Support for security such as Firewalls and securing linux
Post Reply
ScholesC
Posts: 7
Joined: 2014/10/05 23:44:44

access.conf with pam.d

Post by ScholesC » 2014/10/28 10:10:27

Hi ALL,

we want to lock down server using access.conf ..
but we have issue on all of the OS version except centos5.10.

we have sa account and sa group.
$ id sa
uid=100335(sa) gid=100335(sa)

we only want sa account to be able to access this box , and other users in sa group should not be able to access this box.

we have this entry in /etc/pam.d/system-auth
account required pam_access.so nodefgroup
and this entry in /etc/security/access.conf
+ : sa : ALL
- : (sa) : ALL # may not needed
- : ALL : ALL EXCEPT LOCAL

it totaly doesn't work .. users in sa group can still access this box.. that means sa without parentheses will be searched group database ..

but the weird thing , is centos5.10 works with settings(access.conf and pam.d file) above , other OS version doesn't work ...


can you please help ? how I can lock down access for group on server when username and groupname are same ?

thanks,
David.

ScholesC
Posts: 7
Joined: 2014/10/05 23:44:44

Re: access.conf with pam.d

Post by ScholesC » 2016/01/12 00:25:38

can anyone help pls ?

ScholesC
Posts: 7
Joined: 2014/10/05 23:44:44

Re: access.conf with pam.d

Post by ScholesC » 2016/01/14 01:25:55

just FYI ,

talked to RHEL ..

it is fixed now .


>make sure to add following line in both /etc/pam.d/system-auth and /etc/pam.d/password-auth file:
> ---
> account required pam_access.so nodefgroup <------------

Post Reply