[sudo-users] sudo and ulimits on aix 5.3

Todd C. Miller Todd.Miller at courtesan.com
Wed Mar 26 09:35:12 EDT 2008

In message <OFD1B5F0C4.2C4DBB29-ONC1257418.002DEED3-C1257418.002F9DA7 at arz.co.at
	so spake  (philipp.achmueller):

> sudo expects that hard AND soft limits are entered in
> /etc/security/limits.
> since it's enough in AIX to set only one (hard/soft) may you can change
> this behaviour so, that it's enough to set only hard OR soft limits??

I understand the problem now.  I was expecting getuserattr() to
return a default value if there was no limit specified but it looks
like I'll have to add the defaults myself.

The documentation doesn't state the correct behavior if only the
hard limits are specified.  We have two choices:
1) keep the user's soft limit
2) set the soft limit equal to the hard limit

I'd be curious to know what the AIX login program uses in this case.
My guess is that it would use the same value for soft as it does
for hard.

 - todd

More information about the sudo-users mailing list