Third triplet represents the permission for other. Second triplet represents the permission for group owner. Now, from remaining nine letters, first triplet represents the permission for user owner. Look at the above snapshot, different directories and files have different permissions.įirst letter (-) or d represents the files and directories respectively. Now we'll show some examples how permissions can be seen for a file or directory. User and group permissions are not relevant to you. When you are the Other, then the other permission applies to you. Other permissions are not relevant to you. When you are the Group then the group permission applies to you. When you are the User owner, then the user owner permission applies to you. We'll describe these ten characters here.įile permissions for (-rw-rw-r-) position Look at the above snapshot, there are ten characters (-rw-rw-r-) before the user owner. Execute (x): In Unix type system, you can't run or execute a program unless execute permission is set.But in Windows, there is no such permission available.For instance, if a file is present in a directory, and write permission is set on the file but not on the directory, then you can edit the content of the file but can't remove, or rename it. Write (w) : The write permission allows you to edit, remove or rename a file.But you can't do any editing or modification in the file. Read (r) : The read permission allows you to open and read the content of a file.Nine characters denotes the three types of permissions. All the three owners (user owner, group, others) in the Linux system have three types of permissions defined.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |