This question already has an answer here:
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?