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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switch to superuser

Status
Not open for further replies.

adelinewss

Programmer
May 22, 2000
20
SG
Can any body tell me how to allow an user to switch to become a superuser?&nbsp;&nbsp;<br><br>su - in command prompt?<br><br>Thks.
 
Exactly<br><FONT FACE=monospace><br>su <b>username</b><br></font><br>To convert in a new user <i>without</i> getting it´s environment (without running it´s .profile).<br><FONT FACE=monospace><br>su <b>- username</b><br></font><br>To convert in a new user, getting it´s full environment.<br>The default user is root, then you can use <font color=red>su</font>or <font color=red>su -</font><br><br>I hope it works...
 
I already tried but when I tried to switch from normal user to super user use su command, it shows me error &quot;su: you are not in the correct group to su root.&quot;&nbsp;&nbsp;Any idea?
 
adeline,<br><br>Add yourself to the root group.<br><br> <p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Some UNIXes can limit the access to su command. I.e. AIX has a property settable for <i>each</i> user to limit the groups that can enter into this user using <i>su</i>.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top