Page 1 of 1

root password in shadow file [SOLVED}

Posted: 03 Jan 2015, 00:54
by Dave99
Hi all

I need to change the root password, is that password encrypted/encoded or just plain text in the /etc/shadow file?
The reason I ask is that mine is a long string of alphanumeric characters which include things like $ and /
Is this because the wizard generated a random password but it's still plain text?

Thanks in advance.
Dave.

Re: root password in shadow file

Posted: 03 Jan 2015, 08:22
by fanthom
its encrypted. if you want to generate your own password then please run this command in terminal:

Code: Select all

echo YOUR_PASSWORD | openssl passwd -1 -salt `echo $(($RANDOM*12345678)) | cut -c 1-8` -stdin

Re: root password in shadow file

Posted: 03 Jan 2015, 09:34
by Dave99
Thank you fanthom.