Fresh install an OS-Solaris 11 ,then create a common user account as ' work ',then login as work,and su to root ,in order to create a another common user account .
At this point usually meet the problem as follow,
-------------------------------------------------
test@crazyhorse:~$ su
Password:
Roles can only be assumed by authorized users
su: Sorry
-------------------------------------------------
The solution of the above is that to vi /etc/user_attr file.Add a line as follow,
-------------------------------
#
# The system provided entries are stored in different files
# under "/etc/user_attr.d". They should not be copied to this file.
#
# Only local changes should be stored in this file.
# This line should be kept in this file or it will be overwritten.
#
root::::type=role
work::::lock_after_retries=no;profiles=System Administrator;roles=root
test::::lock_after_retries=no;profiles=System Administrator;roles=root
------------------------------
(Note:Add the line '' test::::lock_after_retries=no;profiles=System Administrator;roles=root '', already. )
Then Save.
The solution II for urgency : You can su to work first,then su to root with work account.