Fri Mar 22, 2013 10:16 pm
Hi Joey,
/etc/sudoers MUST be edited with visudo - see raspbian example below:
Code: Select all
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/
sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
pi ALL=(ALL) NOPASSWD: ALL
Unfortunately if it's become corrupted you can't run visudo thus:
sudo visudo
or even
sudo more /etc/sudoers
to see what's there!
The only thing I can think of is does the "root terminal" in LDXE still work? (Assuming you're running raspbian, of course!).
Unless anyone has any better ideas you may just have to use a new SD card image.
Sorry I can't be of any more help,
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm