Apache user does not exist

I try to run the command, chown -R apache: apache xyz But I get an error, chown: `apache: apache ': invalid user

Then I tried using custom www data, but with the same results.

Then I tried to check who owns the apache process by doing ps -Af |grep httpd. I get the following:

root     29577     1  0 18:00 ?        00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody   29754 29577  0 18:00 ?        00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody   29756 29577  0 18:00 ?        00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody   29757 29577  0 18:00 ?        00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody   29758 29577  0 18:00 ?        00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody   29759 29577  0 18:00 ?        00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
nobody   29760 29577  0 18:00 ?        00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5
root     29785 29358  0 18:04 pts/0    00:00:00 grep httpd

So where is the apache user?

Thank.

+3
source share
5 answers

Your apache works as a user called "nobody" (Yes, nobody is the username).

I saw a newer interface in which the apache user was called apache, but you can configure the name in the apache configuration. What version of Linux are you using?

+9
source

apache - httpd.conf. .

:

find / -name httpd.conf | xargs grep -i "^user"

do:

find / -name httpd.conf | xargs grep -i "^group" 

-Martin

+7

, "www-data" apache2

+1

linux apache apache. , .

? , /etc/groups, , .

0

, triyng chroot . :

su: user xxxxxdoes not exist

, chroot, , chroot

cp --parent -avR /usr/lib64 /CHROOT_DIR
cp --parent -avR /usr/lib /CHROOT_DIR
ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64
ln -s /CHROOT_DIR/usr/lib64 /CHROOT_DIR/lib64
0

All Articles