Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to add a user to the wheel group?

How to add a user to the wheel group in leopard?

Posted on Nov 10, 2007 7:39 AM

Reply
Question marked as Best reply

Posted on Nov 10, 2007 7:52 AM

In Leopard, users can be added to system groups using ' dscl'. For example, while logged into an "admin" account, the command below can be entered using "/Applications" > "Utilities" > "Terminal.app" to add a user "username" to the "wheel" group:<pre>
sudo /usr/bin/dscl . -append /groups/wheel GroupMembership username</pre>

If you prefer a GUI, "Workgroup Manager.app", included with the Leopard version of the "Server Admin Tools" can be used.
http://www.apple.com/support/downloads/serveradmintools105.html
6 replies
Question marked as Best reply

Nov 10, 2007 7:52 AM in response to ununquadium

In Leopard, users can be added to system groups using ' dscl'. For example, while logged into an "admin" account, the command below can be entered using "/Applications" > "Utilities" > "Terminal.app" to add a user "username" to the "wheel" group:<pre>
sudo /usr/bin/dscl . -append /groups/wheel GroupMembership username</pre>

If you prefer a GUI, "Workgroup Manager.app", included with the Leopard version of the "Server Admin Tools" can be used.
http://www.apple.com/support/downloads/serveradmintools105.html

Nov 10, 2007 8:44 AM in response to biovizier

That did it. Since I am not using the admin account for my daily work I needed to put my normal account into the wheel group to be able to su to root.

However, I don't understand how the above command works. The /groups directory does not exist on my system, but 'dscl . -read /groups/wheel' gives me correct output. Hm.. I guess I have to take a look at the way the open directory architecture works.

Thanks anyway 🙂

Nov 10, 2007 10:45 AM in response to ununquadium

Well, I am using bsd-like operating systems (especially OpenBSD) and linux for many years (but I am new to osx/darwin). Adding a regular user to the wheel group and using 'visudo' to allow all users in the wheel group to use 'sudo' and 'su' is the normal way to go. You say this doesn't apply to darwin-based osx?

Message was edited by: ununquadium

How to add a user to the wheel group?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.