cancel
Showing results for 
Search instead for 
Did you mean: 

diff between sudo and su

SOLVED
Go to solution
gany59
Regular Advisor

diff between sudo and su

what is the difference between the sudo and su

5 REPLIES
Patrick Wallek
Honored Contributor
Solution

Re: diff between sudo and su

su requires that you know the password of the user you are su'ing to, if you are not root.

sudo lets you set users up to do things so that they do not need to know the root password.
Tim Nelson
Honored Contributor

Re: diff between sudo and su

sudo will also create a log entry including what command was executed.

su will only log the su attempt in /var/adm/sulog

Kranti Mahmud
Honored Contributor

Re: diff between sudo and su

Hi gany59,

For SU:

http://docs.hp.com/en/B9106-90007/su.1.html

For Sudo:

http://linux.about.com/od/commands/l/blcmdl8_sudo.htm

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
Richard Pereira_1
Regular Advisor

Re: diff between sudo and su

Please follow the links above and read the manpages, they should really help. But basically sudo can provide more granular control on permissions than su.
Anshumali
Esteemed Contributor

Re: diff between sudo and su

"sudo can provide more granular control on permissions than su"
--->Need even more granularity--->Go for RBAC
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!