User Commands userattr(1)
NAME
userattr - print attribute value granted to a user or role
SYNOPSIS
userattr [-v] attribute_name [user]
DESCRIPTION
The userattr command prints on standard output the first
value found for the attribute attribute_name. If user is not
specified, the user is taken from the real user ID of the process. Attribute names are those found defined inuser_attr(4) and prof_attr(4). Use the profiles(1) command
for the profiles assigned to a user. Use the auths(1) com-
mand for the authorizations assigned to a user. The order ofsearch is the user's user_attr entry followed by the user's
profiles.If the attribute, attribute_name, is not assigned to the
user, and for any errors, userattr returns a non-zero exit
code. Otherwise, userattr returns a zero exit code.
The -v option additionally prints where the attribute was
found.EXAMPLES
Example 1 Using userattr
example% userattr lock_after_retries root
no FILES/etc/user_attr
/etc/security/policy.conf/etc/security/prof_attr
EXIT STATUS The following exit values are returned: 0 Successful completion. 1 An error occurred.SunOS 5.11 Last change: 15 Jul 2010 1
User Commands userattr(1)
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Interface Stability | See below. ||_____________________________|_____________________________|
The exit code is Committed. The output for the -v option is
Not-an-Interface.
SEE ALSO
auths(1), profiles(1), policy.conf(4), prof_attr(4),
user_attr(4), attributes(5)
SunOS 5.11 Last change: 15 Jul 2010 2