How do I change the owner of a folder in Linux?

Tâm Tây

New member
How do I change the owner of a folder in Linux?
Answer
How to Change the Owner of a File
  1. Become superuser or assume an equivalent role.
  2. 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. …
  3. Verify that the owner of the file has changed. # ls -l filename.
 

Tìm kiếm

Back
Top