I attempted to add another user to the sudoers list on my Raspberry Pi running Debian (Raspbian Jessie kernel ver 4.1). While doing so I entered the entry in wrong and I keep getting these errors every time I try to use sudo:
Code: Select all
>>> /etc/sudoers: syntax error near line 1 <<<
>>> /etc/sudoers: syntax error near line 1 <<<
sudo: parse error in /etc/sudoers near line 1
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Now I cant use sudo to run visudo to change sudoers and for some reason I cant login under root because the default root login password of "raspberry" doesn't seem to work. Does anyone know how I can login into root or change sudoers without using sudo so I don't have to re-flash the system? Any input would be much appreciated.
thanks