Question: how to change the owner of the directory?
Answer: Become superuser or assume an equivalent role. Change the owner of a file by using the chown command. # chown new-owner filename. new-owner. Specifies the user name or UID of the new owner of the file or directory. filename. ...  Verify that the owner of the file has changed. # ls -l filename.