I’ve been getting an error when I type “sudo su”. It says:
"Cannot execute somefile: No such file or directory"
This was caused by the shell for root was incorrectly set. To fix it, I edit the passwd:
sudo nano /etc/passwd
Then I edited the line for root from:
root:x:0:0:root:/root:somefile
to
root:x:0:0:root:/root:/bin/bash
when i do try setting passwd, it says tmp-mksh sudo not found…
It sounds like you are trying to do this on Android. Is that right?
Yes I am
Quand j’ai suivi vos explications, cela a parfaitement marché. Dans mon cas, dans le fichier /etc/passwd, j’avais ceci :
root:x:0:0:root:/root:somefile
et je l’ai remplacé par :
root:x:0:0:root:/root:/bin/bash
et ça a marché.
Thank you very match.