How To Set 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.
Setting permissions in Linux is done using the chmod command. The command sets permissions for individual files and directories so that different types of users can have different levels of access.
The syntax for chmod is:
chmod <options> <permission> <file or directory>
Options include u (user), g (group) and o (other). Permissions include read (r), write (w) and execute (x).
For example, the following command would give read and write permission to the user, group and other on a file named “important.txt”:
chmod ugo+rw important.txt