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

Re: Apache graceful as non-root



Hello Nate

[yes, do CC: me]

Nate Amsden wrote:
> 
> Sven Burgener wrote:
> >
> > Is there a way to do "apachectl graceful" as non-root user? Because when
> > I do, I get an error about denied permission for binding to port 80.
> 
> you could i bet if you made apachectl setuid root but if security is
> an issue i wouldn't reccomend it. to do this do chmod u+s apachectl

Tried it. Doesn't work; Linux seems to silently drop suid root privilges
on shell scripts.

> or you could configure sudo (haven't really messed with sudo can't
> help ya there ..)

Still requires you to enter the user's password though, right? I don't
want to be putting that in the shell script that's callling "apachectl
graceful".

Cheers,
Sven



Reply to: