https://bugzilla.redhat.com/show_bug.cgi?id=178431
User-Agent: Opera/8.50 (Windows NT 5.0; U; ru)
Description of problem:
I set hard nproc limit in limits.conf to 10 and uncommented "session required
pam_limits.so" in /etc/pam.d/crond
When process limit have reached new processes start from root.
Version-Release number of selected component (if applicable):
vixie-cron-4.1-36.FC4 pam-0.79-9.6
How reproducible:
Always
Steps to Reproduce:
1. Add "username hard nproc 10" to /etc/security/limits.conf
2. Uncomment line with pam_limits.so in /etc/pam.d/crond
3. Add jobs in username crontab:
* * * * * /path/to/script.pl
script.pl:
#!/usr/bin/perl
open file, '>/path/to/pid.'.$$;
close file;
while(1) { sleep(1); }
Actual Results: After some time "ps aux" shows 10 process of script.pl under the user username
but other processes are under root.
10 pidfiles owned by username:usergroup but others by root:usergroup
Expected Results: 10 processes of script.pl under username
Additional info:
Also applied to FC3
用户报告在设置cron进程数量限制后,超过限制的新进程会以root身份运行。通过修改limits.conf和pam.d/crond配置文件尝试将进程数限制为10个,但超出的进程却显示为root所有。

被折叠的 条评论
为什么被折叠?



