1

After making a USB Live with Persistence stick, I tried to change root default password (using passwd) to no avail. Every time I reboot it resets to the default one. All other changes I've made (e.g. keyboard layout change, language change, update & upgrade all packages) do persist, except this one.

2

From Kali's forum, they suggest sed, I use a text editor as root but either will work. sed syntax is scary if you're not used to it.

You can just comment out the line that is setting the password to a default value on boot. The config file is:

/lib/live/config/0031-root-password

Once this has been commented out by adding the # in front of the usermod command then your password will no longer be changed back to the default value every time you boot up.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.