I was trying to make an adjustment to the /etc/sudoers file, and I accidentally corrupted it. I restored it via the grub and using the Ubuntu 14.04 default.
But now it seems I can change ownership or permissions when trying to run sudo chown and sudo chmod. I cant even sudo sh.
I just get the following error:
sudo: chown: command not found
Is there anything that I might have lost in the sudoers file that was allowing me to run these commands?
This is my output of $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
This is the output from: whereis sudo chown
sudo: /usr/bin/sudo /usr/lib/sudo /usr/bin/X11/sudo /usr/share/man/man8/sudo.8.gz chown: /bin/chown /usr/share/man/man2/chown.2.gz /usr/share/man/man1/chown.1.gz
Also.. This is where I got the Generic Ubuntu 14.04 sudoers file from. http://heggel4.wordpress.com/2012/10/25/repair-sudoers-file-on-ubuntu-12-04-lts/
Please help. I'm in over my head :/ Thanks all :)
echo "$PATH"
whereis sudo chown
chown
without usingsudo
? Test on a file you own or just typechown
secure_path
in sudoers matches what is on the page you linked to.