You have a lot of permission problems in /etc...it looks like /etc/sudoers *doesn't* have write permission set (despite the error message) but far too many of the other files and directories are 0777 (rwxrwxrwx). Perhaps /etc is also 0777, which I guess would be another reason for the error message.
Even if you're able to fix the sudo problem, you'll probably have other persistent trouble until you fix the rest of the permissions. Do you have any idea how this could have happened? (Were you adjusting permissions of some other file, and accidentally got all of /etc?) If you don't have a lot of customization and precious data on the system, the easiest thing would be to re-flash the OS and start over. I don't know of a way to check and set permissions correctly over a whole system, other than maybe setting a fairly restrictive permission and then relaxing as problems come up. Here's some of my /etc: user:~$ ls -al /etc total 864 drwxr-xr-x 92 root root 4096 Jul 19 11:39 ./ drwxr-xr-x 21 root root 4096 Jul 16 18:52 ../ -rw-r--r-- 1 root root 2987 Apr 6 06:33 adduser.conf drwxr-xr-x 3 root root 4096 Jul 15 13:52 alsa/ drwxr-xr-x 2 root root 4096 Jul 19 11:14 alternatives/ drwxr-xr-x 8 root root 4096 Jul 18 19:53 apache2/ [...] -rw-r--r-- 1 root root 103 Apr 6 06:26 shells drwxr-xr-x 2 root root 4096 Jul 16 19:10 skel/ drwxr-xr-x 2 root root 4096 Jul 15 13:43 ssh/ drwxr-xr-x 4 root root 4096 Jul 15 13:52 ssl/ -rw-r--r-- 1 root root 37 Jul 15 14:00 subgid -rw-r--r-- 1 root root 20 Apr 6 06:33 subgid- -rw-r--r-- 1 root root 37 Jul 15 14:00 subuid -rw-r--r-- 1 root root 20 Apr 6 06:33 subuid- -r--r----- 1 root root 669 Feb 1 23:41 sudoers drwxr-xr-x 2 root root 4096 Apr 6 06:33 sudoers.d/ -rw-r--r-- 1 root root 2351 May 31 2018 sysctl.conf drwxr-xr-x 2 root root 4096 Jul 15 13:47 sysctl.d/ drwxr-xr-x 5 root root 4096 Jul 15 13:47 systemd/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/cdc8fea9-abe7-43d6-a826-8b3b31db5f12n%40googlegroups.com.
