Adding a user to a group on osx

Here is a handy command line to say, add user user1 to the wheel group.

sudo dseditgroup -o edit -a user1 -t user wheel

Very handy command. Then you may want to add group write permission to your target directory.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s