[sudo-users] Sudo and ulimits

Johan Marcusson independence at blinkenlights.se
Tue Jan 22 10:44:39 EST 2008


tis 2008-01-22 klockan 10:36 -0500 skrev Todd C. Miller:
> In message <1201010841.6938.12.camel at indy>
> 	so spake Johan Marcusson (independence):
> 
> > I have some problems with sudo and ulimits. I understand that you do not
> > get the ulimits of the user you are sudoing to, but I wonder if there is
> > some way to configure this to happen?
> > My problem is like this: I have ulimits for all users on the system for
> > a certain number of processes. When one of these users tries to use sudo
> > (to root), they get denied and sudo exits with this message:
> > "setresuid(ROOT_UID, ROOT_UID, ROOT_UID) failed, your operating system
> > may have a broken setresuid() function"
> > I think this is because root is running more processes than the ulimit
> > of the user that is trying to use sudo, and sudo then exits or fails to
> > fork(?) because root is over the ulimit.
> 
> What operating system and what version of sudo are you running?
> Is this only happening to a specific user or for all users?
> 
>  - todd

Linux (2.6.19 with linux-vserver) and sudo 1.6.8p12
I happens for all users.
If I raise the nproc ulimit to more than the number of processes that
runs as root, I don't get this error when using sudo as a user.




More information about the sudo-users mailing list