Quote:
Originally Posted by hydepark2734
as far as i understand, sudo is used so the user won't use the root account and it's password.
but what is the difference?
let's say i installed a fresh copy of ubuntu, no root, just sudo that can do exactly the same as root, for better or worse.
even change the password for root.
i fail to understand how sudo is more safe then root.
|
Sudo is not there to prevent the user from using the root account. Users should never user the root account or have access to it. Sudo allows the administrator (root) to give permission to specific trusted users to issue commands normally reserved for root without knowing root's password. That is the key benefit of sudo. Sudo is definitely not more safe than root, I'm not sure where you got that idea.
When you install Ubunutu and create your user account during the install it is by default given trusted status and full sudo access. Subsequent users that are added to the system are not trusted and will not be given sudo access. Ubuntu has to give that first account full sudo access, since the root account is effectively disabled.