How To Give Directory Permissions 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.
To give directory permissions in Linux, use the chmod command. This command allows you to change the permissions of a file or directory. For example, to give the user “bob” read and write permissions to the directory “mydir”, use the following command:
chmod u+rw mydir
This command will give the user “bob” (u) read (r) and write (w) permissions to the directory “mydir”. You can also use the chmod command to give permissions to groups or everyone (a). For more information on the chmod command and its syntax, refer to the man page.