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?
Relevant info:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
$ ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 121144 Feb 28 2013 /usr/bin/sudo
-a sudo output : -bash: -a command not found
which - a sudo output:
/usr/bin/sudo echo foo output: Permission denied
Second one: -rwsr-xr-x 1 root root 121144 Feb 28 2013 /usr/bin/sudo
– Jacob Jan 05 '14 at 11:21/usr/bin/sudo YOUR_COMMAND
. – falconer Jan 05 '14 at 11:34type -a sudo
andwhich -a sudo
. Then, try running/usr/bin/sudo echo foo
and tell us if it worked. – terdon Jan 05 '14 at 11:47type -a sudo
,type
is a command. Also, make sure there is no space between-
anda
, it should be-a
. It is much easier for us to read if you just copy/paste the command and the output directly from the terminal. Thepermission denied
is interesting. Please add the output ofls -l /usr | grep bin
andls -l / | grep usr
. – terdon Jan 05 '14 at 12:36