centos7 uses yum install httpd
to install the Apache service. The user is apache.
Should the website directory be given owner permissions like chown -R apache:apache
?
But in order to facilitate testers to switch branches for feature testing, the testers are given the apache account and password. But what is the apache password?
Software automatically installed
Server A: use www
[root@fl ~]#cat /etc/passwd | grep apache
apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
Server B: using nginx
[root@iZ~]# cat /etc/passwd | grep www
www:x:501:501::/home/www:/bin/bash
1. What do the numbers 48 and 501 mean?
2. When installing the website, do I have to give the designated user permissions of chown -R
?
3. Can the passwords of www and apache be modified?
仅有的幸福2017-05-16 16:59:51
48 represents the id of the user apache, 501 represents the id of the user group apache, the user apache has set nologin, so no password is required and cannot be logged in