[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Giving a user root priveleges?



Preston Boyington wrote:
I think there is some confusion.

I don't know of any reason to use both 'su' and 'sudo' in a command.
either you would 'su' to root or you would 'sudo' to run a singular command.

'su' is to change into superuser (root) until you exit.
'sudo' is to temporarily be superuser until the command is completed.

To use 'sudo' to run a command just type 'sudo <command>' and as long as
you have the user in the 'sudo' group ('adduser user sudo' as root) that
user will be able to run said command when they log back in.

Sudo only needs the user password, not root's, along with an entry in sudoers. Su needs the password of the user you're su'ing to. Some systems don't have a root password, or don't want everyone with root capabilities to know root's password (It may be used on other machines due to policy, for example.).

Ubuntu is infamous for this kind of setup.


Reply to: