How To Change Folder Permissions In Linux From Command Line?
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. Change directory to the folder you want to change permissions for:
cd <folder_location>
2. Use the command chmod to change permissions. The syntax of the command is:
chmod <permission> <user> <group> <others> <folder_name>
For example, if you want to assign read, write and execute permissions to the user, group and others for a folder called “test”, you would use the following command:
chmod 777 test