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!
