![]() |
Software > OpenVMS Systems > Ask the Wizard ![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: What does the RMS_FILEPROT value of 61440 represent as opposed to the default value of 64000? The Answer is : The RMS protection value is a 2 byte bit mask with the 4 nibbles representing System, Owner, Group and World categories (reading right to left). Within each nibble, the bits represent Read, Write Execute and Delete access, again, reading right to left. The bit sense is 0 means access IS permitted, 1 means access is denied. Here is a picture: Category World Group Owner System Protection D E W R D E W R D E W R D E W R Bit number 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 So, the default value of RMS_FILEPROT is 64000, or, in hex 0000FA00 Category World Group Owner System Protection D E W R D E W R D E W R D E W R Bit number 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 VALUE 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 0 which translates into a protection mask of (S:RWED,O:RWED,G:RE,W). The value 61440 is 0000F000 which is (S:RWED,O:RWED,G:RWED,W). Hint, use SHOW/HEX to examine SYSGEN parameters which contain mask values: SYSGEN> SHOW/HEX RMS_FILEPROT Parameter Name Current Default Min. Max. Unit Dynamic -------------- ------- ------- ------- ------- ---- ------- RMS_FILEPROT 0000FA00 0000FA00 00000000 0000FFFF Prot-mask
|