|
Linux user group security settings
chmod o-r / etc / passwd // allow other users to get the information in the passwd
chmod o-r / etc / group // allow other users to get the information in the group
chgrp apache / etc / passwd / etc / group // the passwd and group to group apache
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 several directory permissions column
chmod go-rx / usr / bin / gcc
chmod go-rx / usr / bin / g ++
chmod go-rx / usr / include // remove glibc other user's permissions |
|
|
|