Re: sudo and ulimit
From: JOSEPH KREMBLAS (JKREMBLAS_at_REDHEARTGIFTS.COM)
Date: 09/30/04
- Previous message: Lamar Saxon: "Re: increase ncargs (sys0)"
- In reply to: Shawn Bierman: "Re: sudo and ulimit"
- Next in thread: Shawn Bierman: "Re: sudo and ulimit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Sep 2004 12:06:50 -0700 To: aix-l@Princeton.EDU
It only makes sense that sudo would use the limits of the user you are
"sudoing" :) too--hence, "security". I see your point and I would
recommend that you read the header section of the sudoers file; the
answer may be in there. --joseph
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Shawn Bierman
Sent: Thursday, September 30, 2004 9:51 AM
To: aix-l@Princeton.EDU
Subject: Re: sudo and ulimit
Yes you can but I do not wish to do that. My question is more on sudo
than it is on ulimits. It seems sudo doesn't use the ulimits of root
when you use sudo but rather the limits of the user running sudo. -shawn
>>> JKREMBLAS@REDHEARTGIFTS.COM 9/30/04 11:34:10 AM >>>
You can change the fsize in /etc/security/limits for all users.
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Shawn Bierman
Sent: Thursday, September 30, 2004 6:02 AM
To: aix-l@Princeton.EDU
Subject: sudo and ulimit
I was attempting to create a mksysb to a local filesystem and wasn't
able to because of the fsize limitation being 1G. So I changed it for
the root account to 3G.
I'm using a script to create the mksysb and I run it through sudo.
# sudo /sp2/bin/mksysb_node
When I use this I get the failure message. My personal ulimit is still
1G. If I do "sudo ulimit" I get the standard 1G limit but If I change
to root with 'su' I can see that root's ulimit is "-1" (unlimited).
So is this a flaw with sudo that it doesn't inherit root's ulimits or is
this a setting I can change in /etc/sudoers?
-shawn
- Previous message: Lamar Saxon: "Re: increase ncargs (sys0)"
- In reply to: Shawn Bierman: "Re: sudo and ulimit"
- Next in thread: Shawn Bierman: "Re: sudo and ulimit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|