Sudo: /etc/init.d/nscd: Command Not Found
I had a system crash and now my Ubuntu runs into low-graphics mode. All the fixes require running commands with sudo
. When I try this I get sudo: command not found
. When I try logging in with su -
I get an error: Authentication failed
. I also tried sudo -i
but that did nothing. I am really stuck here. What can I do?
On a fresh EC2 instance running Ubuntu, I see that there's no /etc/init.d/sshd file. I tried sudo apt-get install openssh-server And it shows that openssh-server is already the newest version.
Relevant info:
Zanna1 Answer
I think the only possibility left it that one of the directories leading to sudo
doesn't have the other executable bit set, so although the directory is in your path, bash
Mount and blade items. can't find the binaries inside. When you try with full path, then of course you get the permission denied message. This problem with the directories is likely also the cause of your original problem with the low-graphics mode thing.
So please try
Sudo Unzip Command Not Found
both of these should report:
permissions. If not, then it is your problem and you should set those permissions for those folders, and likely for some other folders also. But you can't do it from your installation, because you don't have access to sudo. So either boot into recovery mode or use a live CD to correct the errors. (Which were likely caused by a wrong chmod
command.)