1754797 Members
3824 Online
108825 Solutions
New Discussion юеВ

setresuid behavior

 
SOLVED
Go to solution
Matt Shaffer_1
Regular Advisor

setresuid behavior

I am opening this forum on behalf of our app development team. They are trying to capture a core file when a user logs in to their app. They set the max core size to 50M by using ulimit -c. The program calls the setresuid command so it runs as the logged in user. The core file is not being created and they want to know if the setresuid function resets the ulimit -c settings. This is on a RHEL3U4 box. Please let me know if more info is needed.
3 REPLIES 3
Matt Shaffer_1
Regular Advisor

Re: setresuid behavior

Additional info: It only works when I remove the call to "setresuid".
Vitaly Karasik_1
Honored Contributor
Solution

Re: setresuid behavior

regular user cannot increase limits which he gets from ulimit. If you want to increase limits, use /etc/security/limits.conf
Matt Shaffer_1
Regular Advisor

Re: setresuid behavior

the reply I got back helped.