adamant-kite-43734
08/23/2022, 1:54 PMquick-keyboard-83126
08/23/2022, 2:07 PM/etc/sudoers.d/*
, there's probably another file that's forcing the password requirementglamorous-airline-82307
08/23/2022, 2:13 PMzzzzz-rancher-desktop-lima
.
Looking at the file, I see this entry at the top
%everyone ALL=(root:wheel) NOPASSWD:NOSETENV: /bin/mkdir -m 775 -p /private/var/run
That looks correct, although I'm not all that familiar with this file.quick-keyboard-83126
08/23/2022, 2:14 PM/etc/sudoers
itself to see if there's something that's overriding the NOPASSWD
field?quick-keyboard-83126
08/23/2022, 2:15 PMsudo
isn't doing what we expect.quick-keyboard-83126
08/23/2022, 2:16 PMman sudoers
, but it's a long doc, and in general what you're looking for is something that sticks out like a sore thumb.)glamorous-airline-82307
08/23/2022, 2:19 PM/etc/sudoers
is empty. I'm guessing there should be a reference in that file to
/private/etc/sudoers.d
?glamorous-airline-82307
08/23/2022, 2:20 PM/private/etc/sudoers
is also emptyquick-keyboard-83126
08/23/2022, 2:20 PM#
# Sample /etc/sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
##
# Override built-in defaults
##
Defaults env_reset
Defaults env_keep += "BLOCKSIZE"
Defaults env_keep += "COLORFGBG COLORTERM"
Defaults env_keep += "__CF_USER_TEXT_ENCODING"
Defaults env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
Defaults env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
Defaults env_keep += "LINES COLUMNS"
Defaults env_keep += "LSCOLORS"
Defaults env_keep += "SSH_AUTH_SOCK"
Defaults env_keep += "TZ"
Defaults env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
Defaults env_keep += "EDITOR VISUAL"
Defaults env_keep += "HOME MAIL"
Defaults lecture_file = "/etc/sudo_lecture"
##
# User alias specification
##
# User_Alias FULLTIMERS = millert, mikef, dowdy
##
# Runas alias specification
##
# Runas_Alias OP = root, operator
##
# Host alias specification
##
# Host_Alias CUNETS = 128.138.0.0/255.255.0.0
# Host_Alias CSNETS = 128.138.243.0, 128.138.204.0/24, 128.138.242.0
# Host_Alias SERVERS = master, mail, www, ns
# Host_Alias CDROM = orion, perseus, hercules
##
# Cmnd alias specification
##
# Cmnd_Alias PAGERS = /usr/bin/more, /usr/bin/pg, /usr/bin/less
##
# User specification
##
# root and users in group wheel can run anything on any machine as any user
root ALL = (ALL) ALL
%admin ALL = (ALL) ALL
## Read drop-in files from /private/etc/sudoers.d
## (the '#' here does not indicate a comment)
#includedir /private/etc/sudoers.d
glamorous-airline-82307
08/23/2022, 2:25 PMquick-keyboard-83126
08/23/2022, 2:25 PMquick-keyboard-83126
08/23/2022, 2:26 PMroot ALL = (ALL) ALL
%admin ALL = (ALL) ALL
quick-keyboard-83126
08/23/2022, 2:26 PMquick-keyboard-83126
08/23/2022, 2:26 PM## (the '#' here does not indicate a comment)
#includedir /private/etc/sudoers.d
quick-keyboard-83126
08/23/2022, 2:27 PMglamorous-airline-82307
08/23/2022, 2:28 PMquick-keyboard-83126
08/23/2022, 2:28 PMglamorous-airline-82307
08/23/2022, 2:29 PMquick-keyboard-83126
08/23/2022, 2:30 PMquick-keyboard-83126
08/23/2022, 2:31 PMglamorous-airline-82307
08/23/2022, 2:39 PMquick-keyboard-83126
08/23/2022, 2:40 PMglamorous-airline-82307
08/23/2022, 3:52 PMquick-keyboard-83126
08/23/2022, 3:52 PMglamorous-airline-82307
08/23/2022, 3:54 PMquick-keyboard-83126
08/23/2022, 3:57 PMquick-keyboard-83126
08/23/2022, 3:58 PM