Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easiest way to create user with root permissions

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
GB
Hi

Whats the easiest way to create a user which has root privilages but is called say simon.

would it to be create user and assign to sam group id as root "1" ??

Thanks in advance!

simon

Sy UK
 
SunOS used to have a group called "wheel". Members of the group had root privileges. In Solaris, root is the only member that is allowed into group 1.

There is a free application called "sudo" that you may want to check out.


There is also group 14 (sysadmin) that gives users specific privileges like creating user accounts.
 
Hi,

look at the man pages for rbac.

I would suggest rbac over sudo.\\-Joe
 
Simon - don't do it. Search this forum for sudo and find out the reasons why and the alternatives - most of which revolve around sudo.
 
ok great... from memory I have looked at sudo before and hit problems with compilers etc... dont really have alot of time to be spending on it.. but i guess ill have to make time..

thanks for all your help!

rgds

Sy UK
 
You can either use sudo, RBAC, or create another create with a UID of 0. But the last method I would never do myself. I would look into RBAC if you are having problems with compiling SUDO.
 
Look into sudo and RBAC, that's the correct way, but...

If you do want a quick and dirty, just create the user with a UID of '0'.
Code:
simon:x:0:1:Simon root:/export/home/simon:/bin/ksh
Just make sure it appears AFTER [tt]root[/tt] in [tt]/etc/passwd[/tt] or all files owned by [tt]root[/tt] will be owned by [tt]simon[/tt] in [tt]ls -l[/tt] listings (it doesn't change the ownership, it just changes the name displayed in the listing).

The name [tt]root[/tt] is nothing special, it's that UID of zero that gives that login it's power.

Hope this helps.
 
you don't need to compile sudo. The sunfreeware sites provides you with a package SMCsudo which is easily installed with "pkgadd".

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top