Set chmodo-r/etc/passwd for the user group // to prevent other users from obtaining the chmodo-r/etc/group information in passwd. // to prevent other users from obtaining the information in the group/ passwd/etc/group // change passwd and group to apache group permission settings
User group settings
Chmod o-r/etc/passwd // prevent other users from getting information in passwd
Chmod o-r/etc/group // prevent other users from getting information in the group
Chgrp apache/etc/passwd/etc/group // change passwd and group to the apache group
Permission settings
Cd/
Chmod o-r *
Cd/usr
Chmod o-r *
Cd/var
Chmod o-r *
Chmod go-r/etc/httpd/conf
Chmod go-rx/etc/rc. d/init. d
Chmod o-r/etc/rc. d/init. d/* // remove the column permissions of several directories
Chmod go-rx/usr/bin/gcc
Chmod go-rx/usr/bin/g ++
Chmod go-rx/usr/include // remove permissions of other users of glibc