(42S) Unix permissions (chmod) calculator
|
11-01-2019, 04:08 PM
Post: #1
|
|||
|
|||
(42S) Unix permissions (chmod) calculator
This program calculates and decodes the traditional Unix permission bits in octal form (e.g. 4750, 755...). It uses a series of menus to display the individual bits, with the octal representation in the X register.
To use: XEQ "CHMOD" The program will attempt to decode the value in X as an octal value. If that fails, it will begin with 0, i.e. no permission bits set. The octal value should be entered directly in decimal mode, you don't have to switch to octal mode. For example, to decode the value 4640, perform the following steps while in decimal mode: 4640 XEQ "CHMOD" Use the menus to view and toggle the individual bits. Main menu: U - User (Owner) G - Group O - Other (World) SPCL - Special Press one of these keys to go to the respective submenu and toggle/view the bits in the corresponding class. User/Group/Other submenu: R - Read W - Write X - Execute Special submenu: SU - Set User ID SG - Set Group ID STK - "Sticky" bit In the submenus, a set bit will have a box after its label. Cleared bits will have no box. Press any of the keys to toggle the corresponding bit. The menu and X register will update to reflect the change. Press Exit to go back to the main menu. Press exit while in the main menu to exit the program. Code: 00 { 234-Byte Prgm } CHMOD.zip (Size: 305 bytes / Downloads: 4) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)