Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
HELP!!! Raspberry Pi can't do Sudo commands. (sudo chown pi /etc -R and can't reverse as can't use sudo) HELP!!!?
So today I was setting up a mail server on my raspberry pi which is my webserver hosting many websites.
I was a total idiot and did sudo chown pi /etc -R (or what ever order it is) and now I have fakd my pi.
I can't do any sudo commands, when I do i get the error.
sudo: unable to stat /etc/sudoers: Permission denied
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
During the boot up it runs apache2 but brings up loads of errors due to write issues so my sites work, just about however there are no error pages (404, 403 etc).
Also I can't access via FTP as vsftpd can't run.
Also I can't shut it down or reboot. as sudo reboot doesn't work and reboot on it's own brings up the error
-bash: reboot: command not found as guessed.
Also when I login via SSH (plugged in keyboard jams(can't stop key getting sent)) it says at the start of the line (I have no name!@webserver - $)(webserver is the pis name)
Any help would be much appreciated!
Many loves, jervi
check out my raspberry pi site @ http://pi.jervi.co.uk/ , if it works!
2 Answers
- Anonymous7 years agoFavorite Answer
You have totally trashed the system as it needs to read the /etc directory to get ALL its' configuration. It can not even correctly read the user details or who is alowed sudo. The only way to fix that is a total reinstall. Then restore from your backups. You do keep backups?