jojopi wrote:Even if having no root password is not the default in Debian (which is debatable) it is certainly a fully supported option.
Indeed debian added support for the ubuntu style setup some time ago, I don't remember exactly when.
Taking a look it seems the situation is a bit messy. The installer has a question asking which setup you want which defaults to the traditional setup BUT that question is not shown in a normal install. Instead they made the installer automatically switch to the "ubuntu style" setting if the user gives an empty response to the request for a root password. So if you give an empty/default response for every question that doesn't force you to do otherwise you will get a ubuntu style install.
This also makes it fun if you accidently give a blank answer to the root password prompt, you can't just go back and enter one, you have to back out to the menu, change the debconf priority so the question of which style of password setup you want becomes visible and THEN you can set a root password.
pluggy wrote:It isn't locked out, it just doesn't have a password, so by default you can't login as root.
I guess it depends on your definitions of "locked out" and "doesn't have a password"
There are various possible states for the password field in /etc/shadow
If it's set to a password hash then you can login with the corresponding password
If it's set to * then you can't log into the account with password authentication (though other means of getting into the account may still be possible), this is the state I was reffering to when I said "locked out".
If the field is empty then you can login without a password (at the local console anyway, ssh doesn't allow login to such accounts by default).
Maybe it would be more accurate to say the "password is locked out".
Easiest thing in the world to give root a password so you can login with it. Of course if I told you how to do it they'd be calling for my execution on here......
What makes you think that?
FYI to set the root password you use the command "passwd root" of course to do that you need to be root

. If you have access to an account with unrestricted sudo you can do "sudo passwd root".
If you don't have access to an account with unrestricted sudo access but do have access to edit the kernel command line (on the Pi this can be achived by putting the SD card in a PC, on many PC based linux installs this can be done through the bootloader menu) then you can add "init=/bin/sh" to the kernel command line. Then boot the pi and do "mount -o remount,rw /" followed by "passwd root" followed by "exec init".