You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Linux operating system issue
How do I resolve the issue where the mv command fails when executed on the /home directory in CentOS 7?
Copy page
Download PDF
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.​
  1. Modify chronyd service configuration.​
  1. Execute the following command to open the chronyd service configuration file.​
  • ​
    vi /usr/lib/systemd/system/chronyd.service​
    ​
  1. Press the i key to enter edit mode. Then, change ProtectHome=yes to ProtectHome=no.​
  1. Press the Esc key to exit edit mode, enter :wq, and press the Enter key to save the changes and exit the file.​
  1. Execute the following command to reload the configuration file.​
  • ​
    systemctl daemon-reload​
    ​
  1. Execute the following command to restart the chronyd service.​
  • ​
    systemctl restart chronyd.service​
    ​
​
Last updated: 2026.04.13 16:50:02