bsodmike's photostream @ www.flickr.com

HOWTO: Users & Groups in Mac OS X

27/01/2010

OS X is known for it’s great multi-user environment. Let’s suppose you want to define a new group and add a couple users to this group, to allow you to define access rights on various volumes, folders and files. To do this you will need to accedd the Net Info Manager Utility and duplicate any group of your choice, but as a starting point let’s go with ’staff’. Now re-name this group to whatever you want and give it a GID of 400 (a good place to start – remember that these can not clash and must be unique!).

Once the new group has been created we need to set about adding users to this group. To do this perform the following command in terminal as a super-user:

1
$ sudo niutil -appendprop / /groups/groupname users username

If you make a mistake that user can be removed as follows:

1
$ sudo niutil -destroyval / /groups/wheel users username

Finally you should be left with a group that looks like the following:

To check what groups you belong to simply type ‘group’ or ‘id’ at the command prompt and hit enter as follows:

1
$ group

or…

1
$ id
No Comments

About

For the past couple years I lived in the UK, reading in BEng (Hons) Electronic and Computer Engineering at The University of Leeds and MSc (Dist) Mechatronics at King's College London.

My interests and hobbies include writing with Fountain Pens on various ink and paper, Swiss and German wristwatches, authoring articles in Mathematics, Physics, and Engineering, and Gundam modeling.

I have been following much Anime over the years as well as TV Shows with the likes of 24, Smallville, Dexter, and NCIS becoming favourites.