Why I can not use the PAM of RedHat9

Yu Wang yuwang at cs.fsu.edu
Mon Mar 5 19:33:03 UTC 2007


The file should be /etc/security/limits.conf not access.conf.

Yu

-----Original Message-----
From: pam-list-bounces at redhat.com [mailto:pam-list-bounces at redhat.com]
On Behalf Of qin
Sent: Monday, March 05, 2007 1:10 AM
To: pam-list at redhat.com
Subject: Why I can not use the PAM of RedHat9

Hi,

We all know that the PAM has been embedded on the current RedHat9, but
it seems that it does not take effects.

I just want to test the pam_limits.so, and I write a simple
configuration to limit the number of process in
/etc/security/access.conf as follows:

myaccount   hard   nproc   5

(I want to limit the "myaccount" with maxnproc of 5 )
Then, I changed my root account to myaccount, and run ps and grep.

[root at Redhat9 security]# su myaccount
[myaccount at Redhat9 security]$ ps auxww | grep ^myaccount
myaccount   1626   0.0    0.5    2368  1324 pts/2   S   14:36   0:00
bash
myaccount   1627   0.0    0.5    2468  3324 pts/2   S   14:36   0:00
ps auxww
myaccount   1636   0.0    0.5    1968  1329 pts/2   S   14:36   0:00
 grep ^myaccount

It means that I have run three processes. And now if I continue to run
2 processes, the myaccount should be  prohibited by PAM. However, the
PAM does not take effects to limit the myaccount. What is wrong with
it? Are there something wrong with my configuration?

[myaccount at Redhat9 security]$ man perl
....

(it run ok, not be prohibited)


Thank you very much~

- johson

_______________________________________________
Pam-list mailing list
Pam-list at redhat.com
https://www.redhat.com/mailman/listinfo/pam-list




More information about the Pam-list mailing list