This is the error message I get any time I run sudo:
ubuntu@tegra-ubuntu:/$ sudo apt-get update
sudo: unable to stat /etc/sudoers: No such file or directory
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Right now I'm trying to boot ubuntu 14.04 on jetson tx1 (nvidia's most recent development board) using an SD card. I am able to boot Ubuntu without the GUI. However the sudo command is seriously broken.
When creating the filesystem on my sd card, I used sudo to do it. I found lots of other posts about it and verified that
Both user and group have permission to execute
/etc/(sudo: unable to stat /etc/sudoers: No such file or directory - File Exists)Using
pkexec visudo /etc/sudoersgives me this error:** (process:1784): WARNING **: Error enumerating actions: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files Error checking for authorization org.freedesktop.policykit.exec: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service filesThe GRUB menu is not accessible because I don't have the GUI. Holding shift down didn't do the trick...
ls -l /usr/bin/sudoproduce? – Zuko Jun 08 '16 at 20:58-rwsr-xr-x 1 root root 11178 Apr 1 2015 /usr/bin/sudo– MoneyBall Jun 08 '16 at 21:02apt-get --reinstall install sudo– Zuko Jun 08 '16 at 21:10/etc/folder is accessiblechmod g+x /etc– Zuko Jun 08 '16 at 21:10drwxr-xr-x– MoneyBall Jun 08 '16 at 21:14ls -l /etc/sudoersi get-r--r----- 1 root root 745 Apr 1 2015 /etc/sudoersand forcat /etc/sudoersi getcat: /etc/sudoers: Permission denied– MoneyBall Jun 08 '16 at 21:15pkexec visudoand let me know if it's succesful. Also check out this question – Zuko Jun 08 '16 at 21:22