Lost access to SUDO command - Raspberry Pi Forums


i have spent last week setting pi how want it. servers up, touchscreen working. , messing around allowing www-data sudo access , cant use sudo command.

code: select all

pi@raspberrypi3:/etc $ sudo >>> /etc/sudoers: syntax error near line 33 <<< sudo: parse error in /etc/sudoers near line 33 sudo: no valid sudoers sources found, quitting sudo: unable initialize policy plugin 
how can fix ;this without reimaging card? dont wanna lose have done.

mount sd card on system , fix way. way set init bash, that's little trickier.


raspberrypi



Comments