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

difference between sudo su and su 1

Status
Not open for further replies.

hokky

Technical User
Nov 9, 2006
170
0
0
AU
hi guys,

just quick question..
what's the difference between

sudo su
and
su

both seems working same way?
quick explanation please

thanks
 
su on its own just does the job of substituting your current user login with a shell of another user. For any non-root user this will require a password to be entered for the destination user.

sudo su means that someone has created a sudo rule allowing a certain user to run a command with escalated privileges. So you might grant a certain person sudo rights to run su to allow them to become root or any other user they chose, possibly without entering a password (depending on the rule). If it does ask for a password, it will be the password of the user granted the sudo right, not the destination user.



Annihilannic.
 
quick explanation please

with no information as to how much research you've done yourself (none, clearly), doesn't exactly endear you to readers of your thread.

I want to be good, is that not enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top