Search code examples
ubuntusudosu

Can't access super user in ubuntu


I am trying to login to my Ubuntu terminal as super user, but terminal says "Cannot execute :No such file or directory"

output from terminal :

gowtham@gowtham:~$ sudo su
[sudo] password for gowtham:
Cannot execute gowtham: No such file or directory
gowtham@gowtham:~$

where "gowtham" is my username.


Solution

  • Your passwd file might be wrong. Try editing it:

    sudo nano /etc/passwd
    

    Edit it from:

    root:x:0:0:root:/root:somerandomfile
    

    to

    root:x:0:0:root:/root:/bin/bash