The permission property contains a 3-digit number, where: - 1st digit represents the level of permission for Owner
- 2nd digit represents the level of permission for other groups to which the owner belongs
- 3rd digit represents the level of permission for users outside the owner's group
There are 3 level of permission for every level of user:
Each level has a specific number assigned to it.
- Read - 4
- Write - 2
- Execute - 1
So based on these numbers, you can assign each type of user, any of the following digits:
7 = 4+2+1 (Read + Write + Execute) - 6 = 4+2 (Read + Write)
- 5 = 4+1 (Read + Execute)
- 4 = 4 (Read)
- 3 = 2+1 (Write + Execute)
- 2 = 2 (Write)
- 1 = 1 (Execute)
For Example - 750 (default value) means each user has the default permissions: Administrator - 7 - Read + Write + Execute Group - 5 - Read + Execute Other - 0 - None
|