cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 358 Views

su or sudo - which one?????

I would like to collect differences between two commands that get a lot of use: 
- su 
- sudo

Share with me whatever you would like to about these two commands, that will
elevate my knowledge in their use functionality.  By all means feel free to be
liberal with any examples!

 

Note:  If you are a RHCA or RHCE, thank you for stopping by, but let's leave this
             one to the others.

Trevor "Red Hat Evangelist" Chandler
1 Reply
deadin
Mission Specialist
Mission Specialist
  • 309 Views

Hi Trevor,

I won't go into details as it can be read in manuals, but, those are two different commands.

su = switch user

sudo = super user do

It really depends what you need to do on the system. If you temporarily need to elevate your access, to lets say install a package on your server, then use sudo. On the other hand if you switch account to another user, use su.

Join the discussion
You must log in to join this conversation.