From: pk on
Randal L. Schwartz wrote:

>>>>>> "Matthew" == Matthew Lincoln <kmlincoln100(a)hotmail.com> writes:
>
> Matthew> at is the difference between "su" and "sudo" command ?
>
> The simplest difference is that "su" uses the *new* users password, while
> "sudo" uses the *original* users password. This alone means that you
> don't have to have a shared secret password for root, for example. On
> some boxes I administer, root doesn't even *have* a possible password.

True, however sudo can be configured to request the root password rather
that the user's password. That said, I haven't seen such a setup used in
practice.
From: Chris Cox on
Matthew Lincoln wrote:
> Sorry for this newbie question:
>
> at is the difference between "su" and "sudo" command ?

sudo is a more flexible and feature full way of doing something
as another user. Has more options allowing for things like
executing only specific commands, executing things without
password, etc. It's closer to allowing role based security.

su is pretty basic.
From: Ben Finney on
kmlincoln100(a)hotmail.com (Matthew Lincoln) writes:

> at is the difference between "su" and "sudo" command ?

What questions remain after reading the man pages 'su(1)' and 'sudo(8)'?

--
\ “Faith, n. Belief without evidence in what is told by one who |
`\ speaks without knowledge, of things without parallel.” —Ambrose |
_o__) Bierce, _The Devil's Dictionary_, 1906 |
Ben Finney
From: Robert on
On Wed, 30 Dec 2009 18:15:21 +0000, Matthew Lincoln wrote:

> Sorry for this newbie question:
>
> at is the difference between "su" and "sudo" command ?

'su' - You assume the users rights
'sudo' - User is allowed to execute a command in accordance with what is
listed in sudoers.


--

Regards
Robert

Linux User #296285
http://counter.li.org

From: Ryan McCoskrie on
Matthew Lincoln wrote:

> Sorry for this newbie question:
>
> at is the difference between "su" and "sudo" command ?
>

It's (mostly) a matter of the defaults.
By default su gives you a session as another user unless
given the -c switch, in which case it runs one command as
another user. With sudo you need to use the -i to have a
whole session as another user rather than just running one
command.

There are other differences but that's the major one.

--
Quote of the login:
A bug in the code is worth two in the documentation.
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9
Prev: chdir usage
Next: how to alias