Protection modes
Protection modes specify read, write, and execute rights for a protected object and a given user.
User category | Read permission | Write permission | Execute permission |
---|---|---|---|
Object owner | Yes (r ) or No (- ) |
Yes (w ) or No (- ) |
Yes (x ) or No (- ) |
Member of object’s group | Yes (r ) or No (- ) |
Yes (w ) or No (- ) |
Yes (x ) or No (- ) |
Other | Yes (r ) or No (- ) |
Yes (w ) or No (- ) |
Yes (x ) or No (- ) |
For example, suppose you are working in a view and want to see the protection mode for a directory element named lib. Suppose the owner and group of lib have read, write, and execute permission, but other users have only read and execute permissions. The cleartool describe command displays the mode, along with the elements owner (akp) and group (clearusers), as follows:
cleartool describe lib
...
Element Protection:
User : akp rwx
Group: clearusers rwx
Other: r-x
...
Digit | Read permission | Write permission | Execute permission |
---|---|---|---|
0 | No | No | No |
1 | No | No | Yes |
2 | No | Yes | No |
3 | No | Yes | Yes |
4 | Yes | No | No |
5 | Yes | No | Yes |
6 | Yes | Yes | No |
7 | Yes | Yes | Yes |
Digit | User category | Permissions |
7 | Owner | Read, write, execute |
5 | Group | Read, execute |
0 | Others | None |