Live persistence install on bootable USB not saving root password change
Kali Version: 1.0.2
Kali Architecture: i386
Hello,
I installed Kali on a bootable USB key with a persistence partition (in order to save settings modification or documents), following the official guides (http://docs.kali.org/installation/ka...ve-usb-install). Settings are saved (e.g. keyboard layout changed is kept if I shutdown and reboot again with "persistence" option in command line from boot menu). Also, additional users created or documents created and put on desktop are saved.
However, if I change the root password (with command passwd). Then if I logout (so, without rebooting, juts logout), then I have to use the new password to login again, as expected. But, if I reboot completely (going through the boot menu, adding persistence in the command line), then the new password is not saved and I have to use again the default one (toor). Note that changing password for additional users works perfectly with both logout and full reboot: the new password for these additional users are saved.
Is it linked to the default parameters proposed by the boot menu ?
Today I am only pressing TAB key and adding "persistence" at the end of the line.
Without modification of the begining (sudo..., username=root..., etc....)
Best regards,
Uvatha
peristence root password issue
Quote:
Originally Posted by
alexosumi
Well, i just trying to do something to protect my persistence login and i found the way to do it,ex:
1. make your login with root using toor pw
2. use #passwd root to change your root password
3. enter in /etc/passwd and copy root's password hash
4. after copy root's password hash you need to put it in "/lib/live/config/0031-root-password" , just clean old hash and put the new one
5. restar and test =)
TIP:
if you and no roots login, you can edit /etc/passwd and change thw first line changing /bin/bash to /bin/false,of course if you need use root previlegies you must edit /etc/sudoers and put your regular user to use any program with root previlegies.
i hope this tips can help.
Great info man.
You can also just comment out the line that is setting the password to toor on boot.
sed -i '/usermod/s/^/#/' /lib/live/config/0031-root-password
##################################################
@K9:~# cat /lib/live/config/0031-root-password | grep user ;sed -i '/usermod/s/^/#/' /lib/live/config/0031-root-password ; cat /lib/live/config/0031-root-password | grep user
usermod -p 'X014elvznJq7E' root
#usermod -p 'X014elvznJq7E' root
################################################## ####
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 toor everytme you boot up.
Thanks !