[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sudo and login classes



Hi,

imagine you run a fairly busy webserver. Thus you have created or modified a
login class (lets call it daemon) in /etc/login.conf to set openfiles and 
maxprocs to high values. you applied this login class to root. When you boot 
the machine and apache gets started everything is fine.

After mirades of uninterrupted service ;-)) you compile a new httpd binary 
and need to stop and restart apache. Nice guy you are you login as normal 
user (beeing in a login class with much stricter ressource limits - lets
call it default) and "sudo apachectl stop" + "sudo apachectl start". Voila, 
your httpd has the limits of the default login class applied, NOT the one
from daemon.

I wouldn't exactly call this behaviour errorneous. But it is unexpected. The
only solution I know is to actually login as root and issue the apachectl
commands that way.

Is this the expected behaviour?
Should it be changed (is it possible at all?)?
Comments?

Greetz

Henning

(login classes are great. I just love 'em.)

-- 
* Henning Brauer, hostmaster_(_at_)_bsws_(_dot_)_de, http://www.bsws.de    *
* BS Web Services, Roedingsmarkt 14, 20459 Hamburg, Germany *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Visit your host, monkey.org