Skip to main content
The 2024 Developer Survey results are live! See the results
7 events
when toggle format what by license comment
Aug 28, 2019 at 10:07 comment added Kamafeather If it doesn't work you might want to try sudo -u <admin-user> <command>. But for my experience the password to use is the one for the logged user rather than the password of the specified (or default) admin-user (supposedly root ?)
Mar 17, 2016 at 6:42 comment added JL Peyret I just tried to sudo from a non-admin account and that did not work. However... you can su <admin-username> and once you've done that you can sudo as you want.
Oct 23, 2014 at 3:51 comment added bbaassssiiee chgrp operates on ownership files, newgrp changes the user to the group. newgrp enables (read/write/execute) use of multiple group memberships, one at the time.
Sep 23, 2010 at 17:42 comment added Spiff +1 Good answer. I'd add the note that wheel is group ID 0, just like root is user ID 0. You're right that, you don't have to be wheel to sudo. Mac OS X uses the group "admin" (group ID 80) as the default sudoers group. When you check the box to make an account an admin account, it gets added to the admin group.
Sep 23, 2010 at 17:37 history edited Spiff CC BY-SA 2.5
Link to disambiguate "big wheel", and some style improvements.
Sep 23, 2010 at 17:16 vote accept ralphthemagician
Sep 23, 2010 at 15:34 history answered Rich Homolka CC BY-SA 2.5