Bugzilla – Bug 83
aix limits are not reset
Last modified: 2009-06-22 11:43:24 MDT
I have a limit of .5 gig for my file size. When I sudo to my production userid (unlimited) I retain my original settings cuasing the script to fail. How do I force a reset of ulimit under sudo. ulimit man page says you cannot increase this limit without root permissions.
I really have no idea how AIX does per-user resource limits or what library functions exist to set them. I don't have access to any AIX machines at the moment. If you were able to give me a login on one I could poke around and see if I can solve this.
We worked around this problem in another way. I don't have a machine that you can access at present so if you may want to close this issue as wont fix.
*** Bug 174 has been marked as a duplicate of this bug. ***
*** Bug 177 has been marked as a duplicate of this bug. ***
Created attachment 217 [details] Read /etc/environment The attached patch causes sudo to read /etc/environment when it is called with the -i option. It uses code taken from OpenSSH. You can test this on Linux, since that has an /etc/environment file too.
Thanks, I've committed similar code to the sudo cvs tree. I need to do a little research and determine whether I want to read /etc/environment on operating systems other than AIX and Linux.
This has been addressed in the sudo 1.7 code base. The current beta version of sudo, 1.7b3 has support for /etc/environment as well as user rlimits. See http://www.sudo.ws/sudo/dist/beta/
This change caused bug #359 for Ubuntu systems.