I was going through my network security notes and fiddling through my system .
Accidentally, I deleted my /etc/shadow
file ( file that store encrypted value of /etc/passwd ). Currently, I am on my system as I can't logout ( if I do I will loose it forever).
So now I have /etc/shadow-
and /etc/passwd
on my system. Can anyone tell me how to generate or get my shadow file back. I don't want to delete this OS.
I have looked for its answer on stackoverflow or other ubuntu forum nothing has came close to solve this issue.
Due to exam pressure , unable to think how to respond to this issue. But if any one get struck with Ubuntu system file failure or accidental deletion. Just boot an OS through pendrive and move the file to desired location, which I did. If you have dual boot, problem more easier to solve as just go to other OS access your hard drive and make necessary changes.