Password Protection

You can add password authentication for user root using these commands:

mv /etc/passwd /etc/passwd.old
cat /etc/passwd.old | grep -v root::0 > /etc/passwd
echo root:PqnSB08FmjvCY`cat /etc/passwd.old | grep root::0 | cut -f 2- -d:` >> /etc/passwd

Crypted password is the sequence of chars: PqnSB08FmjvCY
You can use this Password Generator to generate sequence for your password.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License