Changing permissions or ownership of files



Related topic

Use the following procedure changes permissions or ownership of files.

To change permissions or ownership of files

  1. To change permissions for a file, place the cursor in the C column of the FSPACE view next to the file and enter the CM line command.The Find Text in File or Directory dialog is displayed (see the following figure).

    ----------------------- CHMOD - Change File Permissions -----------------------
    | COMMAND ===>                                              SCROLL ===> CSR   |
    |                                                                             |
    |                                                                             |
    |                                                                             |
    | Change File Permissions For                                                 |
    |   /home/baojab/                                                             |
    |                                                                             |
    |                                                                             |
    | Modify either character permissions OR octal/bit values, but not both.      |
    |                                                                             |
    |                                                                             |
    |  Character Permissions rwxrwxrwx                                            |
    |                                                                             |
    |  ================================ OR ================================       |
    |                                                                             |
    |  Octal Permissions  777   One octal digit each for owner, group, and other  |
    |  Set UID option bit 0     1 sets effective userid to owner if executed      |
    |  Set GID option bit 0     1 sets effective groupid to owner's if executed   |
    |  Sticky option bit  0     1 indicates search of MVS datasets if executed    |
    |                                                                             |
    |                                                                             |
    | END to change permissions                                                   |
    | CANcel to exit without changing                                             |
    | HELP to view related help                                                   |
    |                                                                             |
    |------------------------------------------------------------------------------
  2. To change ownership for a file, place the cursor in the C column of the FSPACE view next to the file and enter the CO line command.The Change File Ownership dialog is displayed (see the following figure).

     ------------------------ CHOWN - Change File Ownership -----------------------
     | COMMAND ===>                                              SCROLL ===> CSR  |
     |                                                                            |
     | Change File Ownership For                                                  |
     |   /home/baoeuk2/                                                           |
     |                                                                            |
     |  Owner 0            New owner name or numeric uid                          |
     |  Group 2            New owner group or numeric gid                         |
     |                                                                            |
     | END to change owner                                                        |
     | CANcel to exit without changing                                            |
     | HELP to view related help                                                  |
     |                                                                            |
     |                                                                            |
      -----------------------------------------------------------------------------



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*