* [gentoo-user] How can I run apache as non-root user?
@ 2013-05-22 21:01 Jarry
2013-05-22 21:40 ` Michael Orlitzky
0 siblings, 1 reply; 2+ messages in thread
From: Jarry @ 2013-05-22 21:01 UTC (permalink / raw
To: gentoo-user
Hi Gentoo community,
I modified apache config to have it running on non-private
port 8080. I restarted apache and verified that it is
really listening on port 8080 (netstat). But when I check
all running apache processes for owners, I see there is still
one apache process running as root (rest are running as
"apache" user).
So my question is: how can I run apache completely as non-root
user? IIRC, "root" is necessary only if I want to use "low"
port numbers (0-1023), but my apache is using 8080...
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] How can I run apache as non-root user?
2013-05-22 21:01 [gentoo-user] How can I run apache as non-root user? Jarry
@ 2013-05-22 21:40 ` Michael Orlitzky
0 siblings, 0 replies; 2+ messages in thread
From: Michael Orlitzky @ 2013-05-22 21:40 UTC (permalink / raw
To: gentoo-user
On 05/22/2013 05:01 PM, Jarry wrote:
> Hi Gentoo community,
>
> I modified apache config to have it running on non-private
> port 8080. I restarted apache and verified that it is
> really listening on port 8080 (netstat). But when I check
> all running apache processes for owners, I see there is still
> one apache process running as root (rest are running as
> "apache" user).
>
> So my question is: how can I run apache completely as non-root
> user? IIRC, "root" is necessary only if I want to use "low"
> port numbers (0-1023), but my apache is using 8080...
>
That's the parent process; it doesn't actually handle any requests, it
just hands them off to a child process running as another user/group.
Apache needs to be root to both (a) bind to ports < 1024, and (b) switch
to the user/group specified in httpd.conf. If you don't need to do
either of those, try starting apache as the user you want it to run as.
You'll probably need to write your own init scripts, since the stock
ones assume that you're root.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-22 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 21:01 [gentoo-user] How can I run apache as non-root user? Jarry
2013-05-22 21:40 ` Michael Orlitzky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox