z/OS UNIX System Services Planning
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


When HFS file systems are mounted

z/OS UNIX System Services Planning
GA32-0884-00

A newly created file system is empty except for an unnamed root directory. Because this directory needs attributes, which will be stored in its inode, the creating routine must set some start values. The DFSMS allocation routines set ownership to the user who allocates the data set. The routines also set the file mode to 700 in order to ensure that only this user can access it until that user permits other access. When you create file systems for other users, you must change the attributes of the root directory of the new file system. To do so, mount the new file system, and then change the attributes. You need to change the attributes only once because your changes are saved in the root's inode. Assuming that the file system was mounted on a directory called mount-point-name, follow these steps:
  1. For a user file system, change the ownership and leave it up to the user to set the mode:
     chown target-userid:target-groupid mount-point-name
  2. For public file systems, change the file mode and assign the correct ownership:
    chmod 755 mount-point-name
    chown system-userid:system-groupid mount-point-name
    The system-userid and system-groupid must match the purpose of the file system. The same applies to the mode. A mode of 755 allows anyone to make this directory the current working directory, but only the owner can write to it. For other situations, a mode of 750 might be more appropriate.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014