Securing Users and Processes in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

Listing Roles

  • roles – Lists the current user's roles

  • roles username – Lists the roles for username

  • logins -r – Lists all available roles

Example 6-11  Listing Your Assigned Roles

The root role is assigned to the initial user by default. No roles indicates that you are not assigned a role.

$ roles
root