pdrmdir Command

Purpose

Deletes partitioned directories.

Syntax

pdrmdir dirname ...

Description

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.

Security

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.

Exit Status

The pdrmdir command returns the following exit values:

Item Description
0 Successful completion.
>0 An error occurred.

Examples

  1. To delete a partitioned directory, enter:
    pdrmdir partdir

Files

Item Description
/usr/sbin/pdrmdir Contains the pdrmdir command.