On Sat, Sep 26, 2009 at 7:34 PM, Sushant Taneja <green4byte at yahoo.co.in> 
wrote:
> I installed OpenSolaris 2009.06 on my laptop.
> And added the default username and password when asked during the 
> installation.
>
> Now whenever I login into the account and I want to execute the any command 
> or task requiring extra privileges and use sudo in start of the command, I 
> get an error message ?- "Not a sudoer".
>
> How can I change my privileges or the user group ???
>
> I am unable to login into root account.

Hi Sushant, and welcome to the real things! :-)

Forget that sudo stuff, because in Solaris world you use pfexec and
define/use permissions stuff in RBAC. As to sudo equivalent, you
simply do:

pfexec your-command-here <ENTER>

To login to your root account, simply: pfexec su - <ENTER>
(as long as you have "Primary Administrator" role...)

Now, to give you an idea how it all works and why, go read this blog
entry (I find it easiest for you to start with):
http://blogs.sun.com/observatory/entry/understading_rbac

Additionally, you can read these docs:
1. White paper as in a whole:
http://www.sun.com/software/whitepapers/wp-rbac/wp-rbac.pdf
2. Blueprints about some practice how to create/use roles:
http://www.sun.com/blueprints/0605/819-2887.pdf
3. 
http://www.c0t0d0s0.org/archives/4077-Less-known-Solaris-features-RBAC-and-Privileges.html

Last 3rd link especially would be interesting for you. Hope it helps!

--
Kind regards, BM

Things, that are stupid at the beginning, rarely ends up wisely.

Reply via email to