I accidentally edited the file
/etc/passwd on my server in the following way:
Now I can not login as root. When I enter the
Cannot execute /sbin/nologin: No such file or directory is displayed in console.
I have not physical access to server. I have not users in sudoers file.
OS: Linux 2.6.24-23-server
Can you please help me to login as root?
Boot the system from a Live CD, from which you can mount the filesystem and edit the
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.