Problem scenarios
One or both of the following applies to your situation:
#1 In Linux you try to move a directory that is not read only (e.g., its permissions are rwxrwxrwx or 777). You get an error about it being read-only. Your user is the owner of the directory.
OR
#2 You are running an Ansible playbook and trying to change the attributes of the file.
…