Description of the problem
User on MacOS with admin account can’t do sudo operation in terminal
Solving of the prolem
- Login to MacOS to diffrent account as admin
- Go to to /etc/sudoers and find line started like this
- Add line with you name like this
# root and users in group wheel can run anything on any machine as any user root ALL = (ALL) ALL %admin ALL = (ALL) ALL IT ALL = (ALL) ALL
4. Rebooted and logged in as your user
Hint!!!
- sudo exclusively uses account names, not the user’s full name.
- account names don’t contain spaces, so “Admin IT” is not correct.
- Command
help you find user’s nameID -un