0

I want to reset passwords temporarily to log in as root at least one time to change passwords. I have access to the hard drive and I can run a live distro to gain root access.

I did think it would be enough to change for each user the x in the second column of /etc/passwd, but this does not work.

1 Answers1

2

The passwords are stored in the shadow file, not in /etc/passwd, so you need to delete the contents of the second column from /etc/shadow. An entry should look something like this:

root::16229:0:99999:7:::