ECS Linux, if the accidental operation of the/directory permissions in bulk settings, such as Chmod-r 777/, most of the system services and commands will not be available, this time can be used by the system's own GETFACL command to copy and restore system permissions, fixed the following methods:
1, through a normal Linux (the best kernel version and the same failure server) through Getfacl-r/>systemp.bak to the normal system/directory of all the file permissions are backed up in Systemp.bak,
2, if the exception server is not restarted and the connection is not, you can use the SCP command to transfer the normal backup file to the exception server, the command is as follows:
SCP [email protected] Target machine IP:system.bak file path local storage System.bak path
3, execute the command in the exception server Setfacl--restore=systemp.bak can restore the current system permissions to the same as the normal system
4. Reboot restart System
Linux Host system directory error operation permissions modified to 777 fix method