Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I`m learing RBAC in solaris.

bash-2.03# tail -4 /etc/user_attr

Check the 3th line. I modified the account jz accroding to root. So I expecting the account jz have the same power as root. But it do not have. May I know why? Any thing more need to do? Thanks for your help in advance

share|improve this question

That's not how it works.

Judging from the format of your user_attr file it looks like you're using Solaris 11 (that is, it looks the same as my S11 and significantly different from my S10 installs). In Solaris 11 root is a role, not a user.

  • You should not be editing user_attr or any RBAC files directly.
  • The recommended way to elevate to root is with sudo (pfexec and pf-shells are deprecated).
  • The recommended way to modify roles and profiles is with usermod.

You'll need to add the profile Primary Administrator and the role root to the user jz:

usermod -P +"Primary Administrator" -R +root jz

You should remove the line you added manually before issuing that command. See usermod(1M) for more information.

share|improve this answer
Acctually, my os is solaris 8. And I checked the root. Its a user not a role. bash-2.03# grep root /etc/user_attr root::::type=normal;auths=solaris.*,solaris.grant;profiles=All` – Mingwei Li Aug 1 '12 at 6:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.