How to fix and change root & user password in kali linux live usb with persistence
All of us want to be anonymous when we use kali linux.
Therefore we install kali on a live USB with or without persistent and encrypted
data. After that some of it’s primary data such as grub configurations need to be
editted but we couldn’t do that, becuase the bootable partition on the USB cannot
be changed.
Therefore we install kali on a live USB with or without persistent and encrypted
data. After that some of it’s primary data such as grub configurations need to be
editted but we couldn’t do that, becuase the bootable partition on the USB cannot
be changed.
To solve that problem, one way is to use ‘rufuse’ application on windows OS to
copy the image content on a USB and make it both changable and bootable. Doing
the following all steps in kali linuxl
copy the image content on a USB and make it both changable and bootable. Doing
the following all steps in kali linuxl
The subject isn’t “How to make kali live USB editable” but it’s required to do
that before changing your root’s password in a kali live USB with persistent
data.
that before changing your root’s password in a kali live USB with persistent
data.
Let's do that
1.frist of all you need a kali linux live with persistence usb drive(like pen drive)
2.after open terminal in kali linux and type command file in text editor(that like leafpad and other nano)
"leafpad /lib/live/config/0031-root-password"
(note:-not use ""(double quotation symbol in this commands) )
There is a line which contains sth like this “usermod -p ‘{password hash}’ root”.
You need to just put the generated hash of your password instead of
‘{password hash}’ part (with quotes and without curly braces).
‘{password hash}’ part (with quotes and without curly braces).
how to get password hash
- frist all of open terminal
- after change you root and user password
- Enter ‘passwd’ command (without quotes), and enter the new password
- Open ‘leafpad /etc/shadow’ file with a text editor (leafpad a text editor) and press enter
- Find the root’s password hash there. (That’s like: “root:{password hash}:{etc}”…)
Open new terminal and type this commands without double quites"leafpad /lib/live/config/0031-root-password" and press enter
- Paste it in the intended line of “/lib/live/config/0031-root-password” “usermod -p ‘{paste new password hash}
Social Plugin