|USER_ATTR(5)||File Formats and Configurations||USER_ATTR(5)|
Each entry in the user_attr databases consists of a single line with five fields separated by colons (:). Line continuations using the backslash (\) character are permitted. Each entry has the form:
The following keys are available only if the system is configured with the Trusted Extensions feature:
Except for the type key, the key=value fields in /etc/user_attr can be added using roleadd(8) and useradd(8). You can use rolemod(8) and usermod(8) to modify key=value fields in /etc/user_attr. Modification of the type key is restricted as described in rolemod and usermod.
See privileges(7) for a description of privileges. The command ppriv -l (see ppriv(1)) produces a list of all supported privileges. Note that you specify privileges as they are displayed by ppriv. In privileges(7), privileges are listed in the form PRIV_<privilege_name>. For example, the privilege file_chown, as you would specify it in user_attr, is listed in privileges(7) as PRIV_FILE_CHOWN.
See usermod(8) for examples of commands that modify privileges and their subsequent effect on user_attr.
The following example entry assigns to root the All profile, which allows root to use all commands in the system, and also assigns two authorizations:
The solaris.* wildcard authorization shown above gives root all the solaris authorizations; and the solaris.grant authorization gives root the right to grant to others any solaris authorizations that root has. The combination of authorizations enables root to grant to others all the solaris authorizations. See auth_attr(5) for more about authorizations.
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|
|Interface Stability||See below|
The command-line syntax is Committed. The output is Uncommitted.
System Administration Guide: Security Services
Because the list of legal keys is likely to expand, any code that parses this database must be written to ignore unknown key-value pairs without error. When any new keywords are created, the names should be prefixed with a unique string, such as the company's stock symbol, to avoid potential naming conflicts.
In the attr field, escape the following symbols with a backslash (\) if you use them in any value: colon (:), semicolon (;), carriage return (\n), equals (=), or backslash (\).
|October 1, 2020||OmniOS|