Re: sudo and ulimit

From: JOSEPH KREMBLAS (JKREMBLAS_at_REDHEARTGIFTS.COM)
Date: 09/30/04

  • Next message: Shawn Bierman: "Re: sudo and ulimit"
    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


  • Next message: Shawn Bierman: "Re: sudo and ulimit"

    Relevant Pages

    • Re: sudo and ulimit
      ... It seems sudo doesn't use the ulimits of root ... Subject: sudo and ulimit ... I'm using a script to create the mksysb and I run it through sudo. ...
      (AIX-L)
    • Re: sudo and ulimit
      ... the problem might be that sudo only gives you an effective uid of 0 ... Subject: sudo and ulimit ... It only makes sense that sudo would use the limits of the user you are ... It seems sudo doesn't use the ulimits of root ...
      (AIX-L)
    • Re: sudo and ulimit
      ... You can change the fsize in /etc/security/limits for all users. ... I'm using a script to create the mksysb and I run it through sudo. ... My personal ulimit is still ...
      (AIX-L)
    • Re: sudo and ulimit
      ... "Sudo allows a system administrator to give certain users ... commands as root or another user. ... Subject: sudo and ulimit ... privelage yet you don't gain limits. ...
      (AIX-L)
    • sudo and ulimit
      ... the root account to 3G. ... I'm using a script to create the mksysb and I run it through sudo. ... If I do "sudo ulimit" I get the standard 1G limit but If I change ...
      (AIX-L)