Eugene Vilensky wrote:
Hi,
What is the best way of checking the ulimits being applied to a daemon
user such as postfix, since it's not a good idea to give this user a
shell?
Thanks,
Eugene

In RHEL 5 the ability to check what your current limits are was added in /proc/$pid/limits:

# uname -a
Linux foo 2.6.18-92.el5xen #1 SMP Tue Apr 29 13:31:30 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

# cat /proc/self/limits
Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size unlimited unlimited bytes Max stack size 10485760 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 14786 14786 processes Max open files 1024 1024 files Max locked memory 32768 32768 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 14786 14786 signals Max msgqueue size 819200 819200 bytes
Max nice priority         0                    0
Max realtime priority     0                    0

--chris

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to