[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 3

mkrole Command

Purpose

Creates new roles. This command applies only to AIX Version 4.2.1 and later.

Syntax

mkrole [ Attribute=Value ... ] Name

Description

The mkrole command creates a new role. The Name parameter must be a unique role name. You cannot use the ALL or default keywords as the role name.

You can use the Web-based System Manager Users application (wsm users fast path) to run this command. You could also use the System Management Interface Tool (SMIT) to run this command.

Restrictions on Creating Role Names

To prevent inconsistencies, you should restrict role names to characters with the POSIX portable filename character set. You cannot use the keywords ALL or default as a role name. Additionally, do not use any of the following characters within a role-name string:

: Colon
" Double quote
# Pound sign
, Comma
= Equal sign
\ Back slash
/ Slash
? Question mark
' Single quote
` Back quote

Finally, the Name parameter cannot contain any space, tab, or new-line characters.

Restrictions on Creating Roles

To ensure the integrity of the role information, only users with the RoleAdmin authorization can create a role.

Parameters

Attribute=Value Initializes a role attribute. Refer to the chrole command for the valid attributes and values.

Security

Files Accessed:

Mode File
rw /etc/security/roles
r /etc/security/user.roles

Auditing Events:

Event Information
ROLE_Create role

Example

To create the ManageObjects role and set the groups attribute to objects, enter:

mkrole groups=objects ManageObjects

Files

/etc/security/roles Contains the attributes of roles.
/etc/security/user.roles Contains the role attribute of users.

Related Information

The chrole command, chuser command, lsrole command, lsuser command, mkuser command, rmrole command.

Security Administration in AIX Version 4.3 System Management Guide: Operating System and Devices.

Administrative Roles Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.

Setting up and running Web-based System Managementin AIX Version 4.3 System Management Guide: Operating System and Devices.


[ Previous | Next | Contents | Glossary | Home | Search ]