I edited the file /etc/passwd
on my server in the following way:
root:x:0:0:root:/root:/sbin/nologin
Now I can not login as root. When I enter the su
command, Cannot execute /sbin/nologin: No such file or directory
is displayed in console.
I have no physical access to the server. I have no users in the sudoers file.
Can you please help me to log in as root?