Why I can not use the PAM of RedHat9

qin junying.qin at gmail.com
Mon Mar 5 06:09:56 UTC 2007


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




More information about the Pam-list mailing list