We use the chmod command to assign permissions to a file or directory. See below for the possible combinations of permissions: The numbers are as follows:Īdding any combination of these numbers together will give a unique number which corresponds to the permissions associated with a file or directory. In order to set permissions for a file or directory, we must first address the numbers associated with each permission type and how they are used. The first "rwx" in the line is for the owner, the second is for the group, and the third is for all users. The permissions will be displayed at the beginning of each line in the format: _rwxrwxrwx. You can view permissions on a file or directory using the following command: $ ls -l
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |