debian@beaglebone:/etc$ visudo sudoers
visudo: sudoers: Permission denied
debian@beaglebone:/etc$ ls -l
total 940
-rwxrwxrwx 1 root root 2987 Apr 6 10:29 adduser.conf
drwxrwxrwx 3 root root 4096 Jul 16 15:05 alsa
drwxrwxrwx 2 root root 4096 Jun 25 17:53 alternatives
drwxrwxrwx 3 root root 4096 Apr 6 10:24 apache2
drwxrwxrwx 3 root root 4096 Apr 6 10:28 apparmor.d
drwxrwxrwx 3 root root 4096 Apr 6 10:16 apport
drwxrwxrwx 7 root root 4096 Apr 6 10:30 apt
-rwxrwxrwx 1 root root 1127 Apr 6 10:29 asound.conf
drwxrwxrwx 3 root root 4096 Apr 6 10:18 avahi
-rwxrwxrwx 1 root root 1994 Apr 18 2019 bash.bashrc
-rwxrwxrwx 1 root root 45 Feb 11 2019 bash_completion
drwxrwxrwx 2 root root 4096 Jun 19 17:01 bash_completion.d
-rwxrwxrwx 1 root root 0 Jul 22 18:33 bb-bbai-tether.dnsmasq.enable
-rwxrwxrwx 1 root root 367 Mar 2 2018 bindresvport.blacklist
drwxrwxrwx 2 root root 4096 Jan 29 18:07 binfmt.d
drwxrwxrwx 2 root root 4096 Apr 6 10:19 bluetooth
drwxrwxrwx 3 root root 4096 Apr 6 10:16 ca-certificates
-rwxrwxrwx 1 root root 6151 Jun 19 17:01 ca-certificates.conf
-rwxrwxrwx 1 root root 5713 Apr 6 10:17 ca-certificates.conf.dpkg-old
drwxrwxrwx 2 root root 4096 Apr 6 10:17 calendar
drwxrwxrwx 2 root root 4096 Apr 6 10:24 connman
-rwxrwxrwx 1 root root 18 Apr 6 10:18 cpsw_0_mac
-rwxrwxrwx 1 root root 18 Jul 22 18:33 cpsw_1_mac
-rwxrwxrwx 1 root root 18 Jul 22 18:33 cpsw_2_mac
-rwxrwxrwx 1 root root 18 Jul 22 18:33 cpsw_3_mac
-rwxrwxrwx 1 root root 18 Jul 22 18:33 cpsw_4_mac
-rwxrwxrwx 1 root root 18 Jul 22 18:33 cpsw_5_mac
drwxrwxrwx 2 root root 4096 Apr 6 10:17 cron.d
drwxrwxrwx 2 root root 4096 Jun 19 16:56 cron.daily
drwxrwxrwx 2 root root 4096 Apr 6 10:17 cron.hourly
drwxrwxrwx 2 root root 4096 Apr 6 10:17 cron.monthly
-rwxrwxrwx 1 root root 1042 Oct 11 2019 crontab
drwxrwxrwx 2 root root 4096 Apr 6 10:28 cron.weekly
drwxrwxrwx 4 root root 4096 Apr 6 10:16 dbus-1
-rwxrwxrwx 1 root root 2969 Feb 26 2019 debconf.conf
-rwxrwxrwx 1 root root 5 May 2 10:00 debian_version
drwxrwxrwx 2 root root 4096 Jul 21 16:12 default
-rwxrwxrwx 1 root root 604 Jun 26 2016 deluser.conf
drwxrwxrwx 4 root root 4096 Apr 6 10:17 dhcp
-rwxrwxrwx 1 root root 27381 Sep 17 2018 dnsmasq.conf
drwxrwxrwx 2 root root 4096 Apr 6 10:18 dnsmasq.d
-rwxrwxrwx 1 root root 56 Apr 6 10:18 dogtag
drwxrwxrwx 4 root root 4096 Apr 6 10:18 dpkg
-rwxrwxrwx 1 root root 34 Apr 6 10:29 e2fsck.conf
drwxrwxrwx 3 root root 4096 Apr 6 10:16 emacs
-rwxrwxrwx 1 root root 0 Apr 6 10:13 environment
drwxrwxrwx 2 root root 4096 Apr 6 10:28 environment.d
-rwxrwxrwx 1 root root 20 Jul 22 18:32 fake-hwclock.data
drwxrwxrwx 4 root root 4096 Apr 6 10:17 fonts
-rwxrwxrwx 1 root root 236 Apr 6 14:04 fstab
-rwxrwxrwx 1 root root 2584 Aug 1 2018 gai.conf
drwxrwxrwx 3 root root 4096 Apr 6 10:24 ghostscript
drwxrwxrwx 3 root root 4096 Jun 25 17:13 glvnd
drwxrwxrwx 2 root root 4096 Apr 6 10:28 groff
-rw-rw-r-- 1 root root 1106 Jul 22 19:10 group
-rw-rw-r-- 1 root root 1100 Apr 6 10:17 group-
-rw-rw-r-- 1 root shadow 938 Jul 22 19:10 gshadow
-rw-rw-r-- 1 root shadow 932 Apr 6 10:17 gshadow-
drwxrwxrwx 3 root root 4096 Apr 6 10:16 gss
drwxrwxrwx 2 root root 4096 Jul 10 18:16 gtk-2.0
drwxrwxrwx 2 root root 4096 Apr 6 10:28 gtk-3.0
drwxrwxrwx 2 root root 4096 Jun 19 17:00 hostapd
-rwxrwxrwx 1 root root 9 Aug 7 2006 host.conf
-rwxrwxrwx 1 root root 11 Apr 6 14:04 hostname
-rwxrwxrwx 1 root root 213 Apr 6 14:04 hosts
-rwxrwxrwx 1 root root 436 Jul 21 23:08 hosts.allow
-rwxrwxrwx 1 root root 711 Apr 6 10:17 hosts.deny
drwxrwxrwx 3 root root 4096 Apr 6 10:17 ifplugd
drwxrwxrwx 2 root root 4096 Jul 21 16:12 init.d
drwxrwxrwx 5 root root 4096 Apr 6 10:17 initramfs-tools
-rwxrwxrwx 1 root root 1748 May 5 2018 inputrc
drwxrwxrwx 2 root root 4096 Apr 6 10:18 insserv.conf.d
drwxrwxrwx 4 root root 4096 Apr 6 10:17 iproute2
-rwxrwxrwx 1 root root 194 Apr 6 10:29 issue
-rwxrwxrwx 1 root root 188 Apr 6 10:29
issue.netdrwxrwxrwx 7 root root 4096 Apr 6 10:26 kernel
drwxrwxrwx 2 root root 4096 Jun 19 17:00 ldap
-rw-r--r-- 1 root root 130229 Jul 22 18:23 ld.so.cache
-rwxrwxrwx 1 root root 34 Mar 2 2018 ld.so.conf
drwxrwxrwx 2 root root 4096 Jun 25 17:53 ld.so.conf.d
-rwxrwxrwx 1 root root 191 Apr 25 2019 libaudit.conf
drwxrwxrwx 2 root root 4096 Apr 6 10:27 libibverbs.d
drwxrwxrwx 2 root root 4096 Apr 6 10:17 libnl-3
drwxrwxrwx 4 root root 4096 Apr 6 10:27 lighttpd
-rwxrwxrwx 1 root root 2995 May 1 2019 locale.alias
-rwxrwxrwx 1 root root 9356 Apr 6 10:29 locale.gen
lrwxrwxrwx 1 root root 27 Jun 19 17:00 localtime -> /usr/share/zoneinfo/Etc/UTC
drwxrwxrwx 3 root root 4096 Apr 6 10:16 logcheck
-rwxrwxrwx 1 root root 10477 Jul 27 2018 login.defs
-rwxrwxrwx 1 root root 435 Aug 22 2018 logrotate.conf
drwxrwxrwx 2 root root 4096 Jul 21 16:12 logrotate.d
-rwxrwxrwx 1 root root 33 Apr 6 10:18 machine-id
-rwxrwxrwx 1 root root 111 Oct 22 2019 magic
-rwxrwxrwx 1 root root 111 Oct 22 2019 magic.mime
-rwxrwxrwx 1 root root 3332 Apr 6 10:28 mailcap
-rwxrwxrwx 1 root root 449 Feb 9 2019 mailcap.order
-rwxrwxrwx 1 root root 5174 Feb 10 2019 manpath.config
-rwxrwxrwx 1 root root 24512 Feb 9 2019 mime.types
-rwxrwxrwx 1 root root 812 Jan 10 2020 mke2fs.conf
drwxrwxrwx 2 root root 4096 Jun 19 17:00 modprobe.d
-rwxrwxrwx 1 root root 195 Apr 6 10:17 modules
drwxrwxrwx 2 root root 4096 Jun 19 16:56 modules-load.d
-rwxrwxrwx 1 root root 286 Feb 1 17:09 motd
lrwxrwxrwx 1 root root 19 Apr 6 10:17 mtab -> ../proc/self/mounts
drwxrwxrwx 4 root root 4096 Apr 6 10:27 mysql
-rwxrwxrwx 1 root root 9278 Jun 12 2019 nanorc
drwxrwxrwx 7 root root 4096 Jul 21 20:14 network
-rwxrwxrwx 1 root root 60 Apr 6 10:17 networks
drwxrwxrwx 8 root root 4096 Apr 6 10:17 nginx
-rwxrwxrwx 1 root root 542 Apr 6 10:27 nsswitch.conf
drwxrwxrwx 2 root root 4096 May 9 2018 ODBCDataSources
-rwxrwxrwx 1 root root 0 May 9 2018 odbc.ini
drwxrwxrwx 3 root root 4096 Apr 6 10:26 OpenCL
drwxrwxrwx 2 root root 4096 Apr 6 10:28 openmpi
drwxrwxrwx 2 root root 4096 Apr 6 10:13 opt
lrwxrwxrwx 1 root root 21 May 2 16:39 os-release -> ../usr/lib/os-release
-rwxrwxrwx 1 root root 552 Feb 14 2019 pam.conf
drwxrwxrwx 2 root root 4096 Jul 22 18:23 pam.d
-rwxrwxrwx 1 root root 1600 Apr 6 10:17 passwd
-rwxrwxrwx 1 root root 1533 Apr 6 10:29 passwd-
drwxrwxrwx 4 root root 4096 Apr 6 10:16 perl
-rwxrwxrwx 1 root root 57 Apr 6 10:29 pip.conf
drwxr-xr-x 5 root root 4096 Jul 22 18:23 polkit-1
-rwxrwxrwx 1 root root 799 Apr 6 10:29 profile
drwxrwxrwx 2 root root 4096 Apr 6 10:27 profile.d
-rwxrwxrwx 1 root root 2932 Feb 10 2019 protocols
drwxrwxrwx 2 root root 4096 Apr 6 10:18 python
drwxrwxrwx 2 root root 4096 Apr 6 10:15 python2.7
drwxrwxrwx 2 root root 4096 Apr 6 10:17 python3
drwxrwxrwx 2 root root 4096 Apr 6 10:15 python3.7
drwxrwxrwx 2 root root 4096 Apr 6 10:28 rc0.d
drwxrwxrwx 2 root root 4096 Jul 21 16:12 rc1.d
drwxrwxrwx 2 root root 4096 Apr 6 10:29 rc2.d
drwxrwxrwx 2 root root 4096 Apr 6 10:29 rc3.d
drwxrwxrwx 2 root root 4096 Apr 6 10:29 rc4.d
drwxrwxrwx 2 root root 4096 Apr 6 10:29 rc5.d
drwxrwxrwx 2 root root 4096 Apr 6 10:28 rc6.d
-rwxrwxrwx 1 root root 126 Apr 6 10:18 rcn-ee.conf
drwxrwxrwx 2 root root 4096 Jul 21 16:12 rcS.d
lrwxrwxrwx 1 root root 24 Apr 6 10:30 resolv.conf -> /run/connman/resolv.conf
drwxrwxrwx 4 root root 4096 Apr 6 10:16 resolvconf
lrwxrwxrwx 1 root root 13 Apr 23 2019 rmt -> /usr/sbin/rmt
drwxrwxrwx 2 root root 4096 Mar 27 2019 robotcontrol
-rwxrwxrwx 1 root root 887 Feb 10 2019 rpc
-rwxrwxrwx 1 root root 1988 Feb 26 2019 rsyslog.conf
drwxrwxrwx 2 root root 4096 Jul 21 16:12 rsyslog.d
-rwxrwxrwx 1 root root 3663 Jun 9 2015 screenrc
-rwxrwxrwx 1 root root 4173 Apr 6 10:29 securetty
drwxrwxrwx 4 root root 4096 Apr 6 10:13 security
drwxrwxrwx 2 root root 4096 Apr 6 10:13 selinux
-rwxrwxrwx 1 root root 10593 Dec 19 2018 sensors3.conf
drwxrwxrwx 2 root root 4096 Apr 6 10:27 sensors.d
-rwxrwxrwx 1 root root 18774 Feb 10 2019 services
-rwxrwxrwx 1 root shadow 934 Apr 6 10:17 shadow
-rwxrwxrwx 1 root shadow 902 Apr 6 10:29 shadow-
-rwxrwxrwx 1 root root 103 Apr 6 10:17 shells
drwxrwxrwx 2 root root 4096 Apr 6 10:13 skel
drwxrwxrwx 2 root root 4096 Jul 21 23:18 ssh
drwxrwxrwx 4 root root 4096 Jun 19 17:00 ssl
-rwxrwxrwx 1 root root 20 Apr 6 10:29 subgid
-rwxrwxrwx 1 root root 0 Apr 6 10:13 subgid-
-rwxrwxrwx 1 root root 20 Apr 6 10:29 subuid
-rwxrwxrwx 1 root root 0 Apr 6 10:13 subuid-
-r-xr-xr-x 1 root root 692 Jul 22 19:14 sudoers
-r--r----- 1 debian debian 0 Jul 22 05:30 sudoers.c
drwxrwxrwx 2 root root 4096 Jul 22 16:22 sudoers.d
-rwxrwxrwx 1 root root 2351 May 31 2018 sysctl.conf
drwxrwxrwx 2 root root 4096 Jun 19 16:56 sysctl.d
drwxrwxrwx 5 root root 4096 Jun 19 16:56 systemd
drwxrwxrwx 2 root root 4096 Apr 6 10:13 terminfo
drwxrwxrwx 2 root root 4096 Apr 6 10:28 ti-mctd
-rwxrwxrwx 1 root root 13 Apr 6 10:18 timestamp
-rwxrwxrwx 1 root root 8 Jun 19 17:00 timezone
drwxrwxrwx 2 root root 4096 Apr 6 10:17 tmpfiles.d
-rwxrwxrwx 1 root root 1260 Dec 14 2018 ucf.conf
drwxrwxrwx 4 root root 4096 Jun 19 17:00 udev
drwxrwxrwx 3 root root 4096 Jul 21 16:12 ufw
drwxrwxrwx 2 root root 4096 Jun 19 16:56 update-motd.d
-rwxrwxrwx 1 root root 1523 Feb 23 2018 usb_modeswitch.conf
drwxrwxrwx 2 root root 4096 Feb 23 2018 usb_modeswitch.d
-rwxrwxrwx 1 root root 51 Jan 20 2019 vdpau_wrapper.cfg
drwxrwxrwx 2 root root 4096 Apr 6 10:17 vim
-rwxrwxrwx 1 root root 4942 Apr 5 2019 wgetrc
drwxrwxrwx 2 root root 4096 Jun 19 17:00 wpa_supplicant
drwxrwxrwx 6 root root 4096 Apr 6 10:29 X11
-rwxrwxrwx 1 root root 642 Mar 1 2019 xattr.conf
drwxrwxrwx 4 root root 4096 Apr 6 10:24 xdg