- Documentation
Elastic Compute Service
Elastic Compute Service
Troubleshooting
Operating system issue
Linux operating system issue
How do I resolve the issue where the mv command fails when executed on the /home directory in CentOS 7?
Linux operating system issue
How do I resolve the issue where the mv command fails when executed on the /home directory in CentOS 7?
How do I resolve the issue where the mv command fails when executed on the /home directory in CentOS 7?
Problem description
In CentOS 7, executing the mv command on the /home directory fails.
Causes
This issue occurs because ProtectHome=yes is specified for the chronyd.service service by default, which protects the /home directory.
Solutions
You can modify the chronyd service configuration to set ProtectHome to no, thereby removing protection for the /home directory.
- Modify chronyd service configuration.
- Execute the following command to open the chronyd service configuration file.
- Press the i key to enter edit mode. Then, change ProtectHome=yes to ProtectHome=no.
- Press the Esc key to exit edit mode, enter :wq, and press the Enter key to save the changes and exit the file.
- Execute the following command to reload the configuration file.
- Execute the following command to restart the chronyd service.
Last updated: 2026.04.13 16:50:02