How To Change Owner Of a Folder In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. To change the owner of a folder in Linux, first open your terminal window.
2. Then type in the following command:
sudo chown <username>:<groupname> <folder path>
Replace <username> with the new owner’s username, <groupname> with the new owner’s group, and <folder path> with the path to the folder you wish to change the ownership of.
3. Press Enter to execute the command. You should now have changed the owner of the folder.