UNIX question

Icepick

Diamond Member
Nov 1, 2004
3,663
4
81
I have an old Sun server that I recently upgraded to Solaris 10.

I recently added a new account to the box for one of my coworkers and I'd like to grant them root access so that they can test some scripts. How does one grant privileged or root CLI access to a new user account?


 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Depends on how you want to do it. If sudo's is installed you can set them up in there and then they'd type 'sudo blah', enter their password and blah would be executed with root priviledges. The main thing sudo is good for is limiting their rights though so you can put only specific commands into the sudoers file and if they try to run anything else it'll fail. If you don't have sudo you can just give them the root password and tell them to 'su -' to become root in that shell, also I'm not sure how Solaris is setup by default but you may need to add them to the wheel group for that to work.
 

Bateluer

Lifer
Jun 23, 2001
27,730
8
0
Its a poor idea, but you could also set their userID to 0. Very bad idea idea though, its just very very fast to do.

I'd go with sudo myself.
 

degibson

Golden Member
Mar 21, 2008
1,389
0
0
You can try adding your user to the wheel group, which grants all kinds of crazy access.

Also, depending on what your scripts do, Sun's online sysadmin docs might have some black magic that will grant your user the permissions needed without giving away the farm...
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
I'm all about the sudo. We use it heavily here on solaris 10 and our ubuntu servers.