You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running dockutil 3.0.2 on macOS 12.4 as a non-admin user with --add or --remove, an error of:
<username> is not in the sudoers file. This incident will be reported.
To aid in troubleshooting, adding a relatively-harmless temporary sudoers entry of:
<username> ALL=() NOPASSWD: /bin/ls
and then re-running dockutil as <username> provides greater insight:
Sorry, user <username> is not allowed to execute '/usr/bin/defaults import /Users/<username>/Library/Preferences/com.apple.dock.plist -' as <username> on <hostname>.local.
My conclusion is that sudo is being used when not required ie when a user is trying to edit their own com.apple.dock.plist file.
As a temporary work-around, adding a sudoers file eg /private/etc/sudoers.d/dockutil as:
ALL ALL=() NOPASSWD: /usr/bin/defaults
allows dockutil to operate as expected, however I believe this work-around should not be required.
The text was updated successfully, but these errors were encountered:
When running dockutil 3.0.2 on macOS 12.4 as a non-admin user with --add or --remove, an error of:
<username> is not in the sudoers file. This incident will be reported.
To aid in troubleshooting, adding a relatively-harmless temporary sudoers entry of:
<username> ALL=() NOPASSWD: /bin/ls
and then re-running dockutil as <username> provides greater insight:
Sorry, user <username> is not allowed to execute '/usr/bin/defaults import /Users/<username>/Library/Preferences/com.apple.dock.plist -' as <username> on <hostname>.local.
My conclusion is that sudo is being used when not required ie when a user is trying to edit their own com.apple.dock.plist file.
As a temporary work-around, adding a sudoers file eg /private/etc/sudoers.d/dockutil as:
ALL ALL=() NOPASSWD: /usr/bin/defaults
allows dockutil to operate as expected, however I believe this work-around should not be required.
The text was updated successfully, but these errors were encountered: