centos7 - What is the password for centos LAMP apache?
淡淡烟草味
淡淡烟草味 2017-05-16 16:57:51
0
1
681

centos7 usesyum install httpdto install the Apache service. The user is apache.
Should the website directory be given owner permissions likechown -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 ofchown -R?
3. Can the passwords of www and apache be modified?

淡淡烟草味
淡淡烟草味

reply all (1)
仅有的幸福

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

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!