I don't think this is a group problem, I think it's a problem accessing the /private/etc/sudoers file itself. I'm not in the wheel group and sudo works fine for me. And your 'id' output shows that your account is already set up as an administrator.
The permissions for the file were fine, let's check the parent directories:
ls -lad /private/etc /private
Should result in:
drwxr-xr-x@ 6 root wheel 204 Nov 29 22:15 /private
drwxr-xr-x 87 root wheel 2958 Feb 19 19:27 /private/etc
Oh and while you're at it, do a:
ls -la /usr/bin/sudo
-r-s--x--x 1 root wheel 211232 Sep 23 19:29 /usr/bin/sudo
PS, it's the admin group that you need to be in to use sudo, not wheel:
sudo grep admin /private/etc/sudoers
%admin ALL=(ALL) ALL
----------------------------------------question---------------------------------------------
Hi DVD/ Other Mac people,
I've been trying to remove the Active Directory settings in my mac but I don't have the permission even though I am the owner/dministrator.
I tried the reboot option with /sbin/fsxk -fy but was ignored.
Can someone help me in my computer?
localhost:/root#/sbin fsck -fy
warning : option -f is not implemented, ignoring
**checking container superblock
**checking space manager
**checking the space manager queue trees
**checking the object map.
**checking volume.
**Checking APFS volume superblock
**The volume Lalamari was formatted by hfs_convert(748.77.8) and last modified by apfs_kext(945.275.7).
**Checking object map.
handle_crypto_mount:831:handling crypto mount (volume /dev/disk1s1)
handle_crypto_mount:1050:crypto mount finished w/apfs
**Checking snapshot metadata tree.
** Checking snapshot metadata.
**Checking extent ref tree.
**Checking the fsroot tree.
apfs_vfsop_unmount:1636: fake mount for going away
apfs: total mem allocated: 2058966 (2mb);
** Verifying allocated space.
**The volume /dev/rdisk1s1 appears to be OK.
I've tried the -la / usr/bin//sudo
result:
-r-s--x--x 1 root wheel 370720 July30 05:56 /usr/bin/sudo
Can someone help and explain the above lines?