rmdom Command

Purpose

Removes the domains from the domain database.

Syntax

rmdom Name

Description

The rmdom command removes the domain that is identified by the Name parameter. The command only removes the existing domains from the domain database. A domain that is referenced by the domain object database cannot be removed until you remove the references to the domain.

When the system is operating in enhanced role-based access control (RBAC) mode, modifications made to the domains database are not used for security considerations until the database has been sent to the kernel security tables by using the setkst command.

Parameters

Item Description
Name Specifies the name of the domain to be removed.

Security

The rmdom command is a privileged command. You must have the following authorization to run the command:

Item Description
aix.security.domains.remove Required to remove the domain from the domain database.

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

File Accessed

File Mode
/etc/security/domains rw

Examples

To remove the hrdom domain, type:
rmdom hrdom