I'm struggling to find a way of creating a blank password for root from the cmd line and would be interested in any ideas. Just to explain what I mean by a blank passwd.... ie pressing [enter] twice after entering
I need the password set to be able to use ssh(). If it's not set I can't login.
passwd
. This actually creates a password for root. It means you get a password prompt when logging in, whereas you don't if you never run passwd
. I thought that pw usermod -n root -w none
would do it, but unsets any existing password.I need the password set to be able to use ssh(). If it's not set I can't login.