userattr(1) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

userattr(1)

userattr(1)                      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 in user_attr(5) and  prof_attr(5).  Use  the  profiles(1)
       command  for  the profiles assigned to a user. Use the auths(1) command
       for the authorizations assigned to a user. The order of search  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.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _  Availabilitysystem/core-os  _  Interface  StabilitySee
       below.



       The  exit  code  is  Committed. The output for the -v option is Not-an-
       Interface.

SEE ALSO
       auths(1),  profiles(1),  policy.conf(5),  prof_attr(5),   user_attr(5),
       attributes(7), rbac(7)

HISTORY
       The userattr command was added in Solaris 11.0.0.



Oracle Solaris 11.4               21 Jun 2021                      userattr(1)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3