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

Re: Apache graceful as non-root



I aint expert but... someidea.

Perl has SUID module (havent used it... but heard.)

Alternatively write a super short C program which runs your script 
and make its binary SUID.

Good luck.

On Tue, Jan 09, 2001 at 09:38:59AM +0100, Sven Burgener wrote:
> 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
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 
> 

-- 
+  Osamu Aoki <debian@aokiconsulting.com>, GnuPG-key: 1024D/D5DE453D  +
+   Fingerprint: 814E BD64 3288 40E7 E88E  3D92 C3F8 EA94 D5DE 453D   +
+   === http://www.aokiconsulting.com ======= Cupertino, CA USA ===   +



Reply to: