whats the difference between sudo and su?

Questions about applications and software
Forum rules
Before you post please read this

whats the difference between sudo and su?

Postby jett on Mon Jan 15, 2007 5:45 pm

they seem to do the same thing.
when you log into su dont you have total control?
or does sudo do something that su doesnt?
User avatar
jett
Level 2
Level 2
 
Posts: 65
Joined: Tue Nov 28, 2006 8:43 pm

Linux Mint is funded by ads and donations.
 

Re: whats the difference between sudo and su?

Postby scorp123 on Mon Jan 15, 2007 6:19 pm

jett wrote:does sudo do something that su doesnt?
It jumps out of the session once it's finished, su doesn't per default, it stays in the account you su'd into. A funny combination under Ubuntu is sudo su - ... gives you a root shell 8)
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby clem on Tue Jan 16, 2007 9:09 am

su --> login as root
sudo --> run as root

With su you're talking permissions, owners, groups.
With sudo you're talking sudoers, list of people who can run things "without being root" or "having permissions on the files".

Clem
User avatar
clem
Level 15
Level 15
 
Posts: 5544
Joined: Wed Nov 15, 2006 8:34 am

Postby rfruth on Tue Jan 16, 2007 11:06 pm

Here is some su vs sudo info https://help.ubuntu.com/community/RootSudo
User avatar
rfruth
Level 1
Level 1
 
Posts: 47
Joined: Mon Jan 15, 2007 11:53 am
Location: Texas (USA)


Return to Software & Applications

Who is online

Users browsing this forum: PatH57, xana40 and 24 guests