Linux Host system directory error operation permissions modified to 777 fix method

Source: Internet
Author: User
Tags scp command

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.