Changing permissions or ownership of files


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).

    DDMMMYYYY  16:52:06 ------ MainView WINDOW INTERFACE (V6.0.00) ----------------
    ----------------------- 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                                                   |
    |                                                                             |
    |------------------------------------------------------------------------------
      baokmz3           DIR        51    8      8192         0        2 drwxrwxrwx
      baokmz4           DIR        52    8      8192         0        2 drwxrwxrwx
  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).

    DDMMMYYYY  16:52:06 ------ MainView WINDOW INTERFACE (V6.0.00) ----------------
     ------------------------ 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                                                  |
     |                                                                            |
     |                                                                            |
      -----------------------------------------------------------------------------
        baojxp            DIR     16233    8      8192      3911        2 drwxrwxrwx
        baokmz1           DIR        49    8      8192         0        2 drwxrwxrwx

Related topic




 

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

MainView for UNIX System Services 6.1