Help to create psuedo root

Hi,I am very new to solaris.If any body knows how to create psuedo root or user with root privelages in solaris 9 then please provide the solution for thati tried commanduseradd -u 0 but this doesnot helpThanks in advance.....
[275 byte] By [awkash_agrawal] at [2007-11-26 11:44:03]
# 1

I wouldn't create another account with a uid of 0. My solution to this would be to install sudo and grant user accounts the amount of privileges they need. If a user account needs full access to do everything that root can do sudo will allow this functionality. Sudo also has a nice audit trail because it logs to syslog.

bosconet at 2007-7-7 11:52:20 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

That is a very risky and unneeded solution to a problem which probably doesn't even exist. Look into RBAC control, also available in Solaris 9 to my knowledge. In other words: simply create a regular useraccount and grant it all the privileges it needs.

Better yet: create a role for root-alike administration and allow certain accounts to log into this role.

As a sidenote, even though I am paranoid where security is concerned, I really would be very carefull with programs like sudo. Sudo is in the end nothing more than a program which is set SUID root and allows some form of controlled access. But due to its SUID bit this also involves quite some risk and Solaris' own RBAC control is much more flexible and robust for attacks.

LionO at 2007-7-7 11:52:20 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
use useradd command with the -o option. this option is used to duplicate the user ids of already exixting users.for eguseradd -ou 0 user-name
Danl@sun at 2007-7-7 11:52:20 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
i would go for RBAC or sudo in the worst case, if you duplicate a user with the same id there is not way that you can track files or process that this 2 users run in the same server.Good luckJoshD
JoshD at 2007-7-7 11:52:20 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...