So here is the procedure to recover.
- Login to your system in single user mode.
- on terminal run the command as
- cp /etc/passwd/~ /etc/passwd
- cp /etc/shadow/~ /etc/shadow
Thats enough, you have recovered the files as linux by default takes the backup of these two files.
No comments:
Post a Comment