Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../.././../../../usr/man/man1/userattr.1
Real path: /usr/share/man/man1/userattr.1
Zurück
'\" te .\" Copyright (c) 2010, 2022, Oracle and/or its affiliates. .TH userattr 1 "6 Oct 2022" "Oracle Solaris 11.4" "User Commands" .SH NAME userattr \- print attribute value granted to a user or role .SH SYNOPSIS .LP .nf \fBuserattr\fR [\fB-v\fR] \fIattribute_name\fR [\fIuser\fR] .fi .SH DESCRIPTION .sp .LP The \fBuserattr\fR command prints on standard output the first value found for the attribute \fBattribute_name\fR. If user is not specified, the user is taken from the real user ID of the process. Attribute names are those found defined in \fBuser_attr\fR(5) and \fBprof_attr\fR(5). Use the \fBprofiles\fR(1) command for the profiles assigned to a user. Use the \fBauths\fR(1) command for the authorizations assigned to a user. The order of search is the user's \fBuser_attr\fR entry followed by the user's profiles. .sp .LP If the attribute, \fIattribute_name\fR, is not assigned to the user, and for any errors, \fBuserattr\fR returns a \fBnon-zero\fR exit code. Otherwise, \fBuserattr\fR returns a \fBzero\fR exit code. .sp .LP The \fB-v\fR option additionally prints where the attribute was found. .SH EXAMPLES .LP \fBExample 1\fR Using \fBuserattr\fR .sp .in +2 .nf example% \fBuserattr lock_after_retries root\fR no .fi .in -2 .sp .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 5n .rt Successful completion. .RE .sp .ne 2 .mk .na \fB\fB1\fR\fR .ad .RS 5n .rt An error occurred. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability system/core-os _ Interface Stability See below. .TE .sp .sp .LP The exit code is Committed. The output for the \fB-v\fR option is Not-an-Interface. .SH SEE ALSO .sp .LP \fBauths\fR(1), \fBprofiles\fR(1), \fBpolicy.conf\fR(5), \fBprof_attr\fR(5), \fBuser_attr\fR(5), \fBattributes\fR(7), \fBrbac\fR(7) .SH HISTORY .sp .LP The \fBuserattr\fR command was added in Solaris 11.0.0.