Is it bad that one of my apache instances is running as root

> 31167 www-data 15 0 282m 24m 14m S 0 3.2 0:01.06 apache2

31275 www-data 15 0 283m 23m 13m S 0 3.1 0:00.47 apache2

31272 www-data 15 0 280m 21m 13m S 0 2.8 0:00.23 apache2

31258 www-data 15 0 281m 19m 11m S 0 2.6 0:00.39 apache2

31286 www-data 16 0 284m 19m 8472 S 2 2.5 0:00.06 apache2

31217 www-data 15 0 281m 19m 10m S 0 2.5 0:00.84 apache2

31281 www-data 15 0 280m 17m 9.9m S 0 2.3 0:00.31 apache2

31282 www-data 15 0 280m 17m 9960 S 0 2.2 0:00.32 apache2

31289 www-data 18 0 280m 15m 8360 S 2 2.1 0:00.05 apache2

31285 www-data 15 0 280m 14m 7448 S 3 1.9 0:00.09 apache2

31276 www-data 15 0 280m 14m 7268 S 0 1.9 0:00.05 apache2

29478 root 18 0 279m 12m 7068 S 0 1.7 0:03.04 apache2

31287 www-data 15 0 279m 7392 1260 S 0 0.9 0:00.00 apache2

Is it bad that one of my apache instances is running as root?

2 Replies

No. The main process (httpd) runs as the root user and creates/spawns unprivileged child processes.

It needs root in order to bind the privileged port (default: 80), and to complete other preliminary activities.

That's what I was thinking in the back of my head. Just verifying. Thanks!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct