Deletes partitioned directories.
pdrmdir dirname ...
The pdrmdir command deletes partitioned directories that you specify using the dirname parameter. Normal users can delete partitioned directories if the Discretionary Access Control (DAC), the Mandatory Access Control (MAC) and the Mandatory Integrity Control (MIC) permissions allow the user to delete the directory. Authorized users with the aix.mls.pdir.rmdir authorization can override the DAC, MAC and MIC permissions.
The pdrmdir command removes only empty partitioned subdirectories and does not remove files or directories within partitioned subdirectories. The partitioned directory is removed after all the partitioned subdirectories are removed and the directory is empty. The removal of partitioned directory fails if a file exists.
All users can execute the pdrmdir command. To successfully perform specific functions, users need the following authorization:
Item | Description |
---|---|
aix.mls.pdir.rmdir | Required to remove directories in a path ignoring the DAC, MAC and MIC permissions. |
The pdrmdir command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
pdrmdir partdir
Item | Description |
---|---|
/usr/sbin/pdrmdir | Contains the pdrmdir command. |