Creates partitioned directories.
The pdmkdir command creates partitioned directories that you specify using the dirname parameter. Normal users can create partitioned directories if the Discretionary Access Control (DAC), the Mandatory Access Control (MAC) and the Mandatory Integrity Control (MIC) permissions allow the user to create the new directory. Users with the aix.mls.pdir.mkdir authorization can override the DAC, MAC and MIC permissions.
Item | Description |
---|---|
-g Group | Sets the group of the newly-created directories. You can specify either a group name or group ID. Users with the aix.mls.pdir.mkdir authorization can change the group of the directory to a group that they are not members of. |
-m Mode | Sets the permission bits for the newly created directories to the value that is specified by the Mode variable. Specify the Mode variable as a numeric value. |
-u Owner | Sets the owner of the newly created directories. You can specify either the owner name or owner ID. Users with the aix.mls.pdir.mkdir authorization can change the owner of the directory. |
All users can run the pdmkdir command. To successfully perform specific functions, users need the following authorization:
Item | Description |
---|---|
aix.mls.pdir.mkdir | Required to change the owner or group using the -u or -g flag. This authorization is also required to create directories in a path that ignores the DAC, MAC and MIC permissions of the parent directory. |
The pdmkdir command returns the following exit values:
Item | Description |
---|---|
0 | The command ran successfully and made all requested changes. |
>0 | An error occurred. |
pdmkdir partdir
pdmkdir –m 755 –u joe –g staff partdir
Item | Description |
---|---|
/usr/sbin/pdmkdir | Contains the pdmkdir command. |