8

ps shows my httpd processes as

apache   29561 15186  0 15:30 ?        00:00:00 /usr/sbin/httpd

I'm running Centos 5.3

All the log files in /var/log/httpd are owned by root.

How come?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

1 Answers1

12

The httpd children run as apache, but the process that spawns them runs as root (as is necessary to bind a privileged port eg. port 80). Look closely and you'll see an httpd running as root.

pdo
  • 6,970
  • 3
  • 28
  • 19