sudo and /etc/sudoers

Florian Diesch diesch at spamfence.net
Wed Dec 31 21:52:18 UTC 2008


"Koh Choon Lin" <sgfreedom at gmail.com> wrote:

>>>> Which major distribution doesn't have this sudo system on by default?
>>>> I remembered Fedora being of them or has that been changed?
>>>
>>> IIRC, Debian.
>>
>> Not unless they backed out of it since Ubuntu came along.  I was using sudo
>> back then.  He didn't ask "which major distribution doesn't enable root".
>
> Interestingly, one has to reset the root password to login as root.
> Thus, does Ubuntu maintains the same root password for all installed
> systems? 

At login a hash of your password is compared with the password hash
stored in /etc/shadow (or whatever password database you are using).
Root's password hash in /etc/shadow is set to a value that isn't a
valid hash (the hash function is guaranteed to never return this
value) so very password you may try will fail.



   Florian
-- 
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
**  Hi! I'm a signature virus! Copy me into your signature, please!  **
-----------------------------------------------------------------------




More information about the ubuntu-users mailing list