LLLActive@GMX.Net said the following on 06/30/2011 06:32 AM:
I used to be able to delete the password in the /etc/passwd file, and reboot without a password. Then I could set a new password. You had to get to the machine and boot by CD in a recovery mode, hang on the root FS of the wanted system and change the password entry for root. Later this method was blocked with the shadow file. I'm not sure when that was, but I know of no other method to do that any more. It will also interest me how to do it now.
<irony> Its a shame there isn't a "-r FSroot" for "passwd" so that you can boot off the liveCD, mount the hard disks rootFS at /mnt/disk and then passwd -r /mnt/disk --stdin root </irony> Al, how about editing the shadow file? Use 'man shadow' to find out what field to edit. -- The spirit of resistance to government is so valuable on certain occasions that I wish it to be always kept alive. It will often be exercised when wrong, but better so than not to be exercised at all. --Thomas Jefferson -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org