Random Ranting (150) · Gadgets & Tech (15) · Anime & Otaku (11) · Watches & Horology (43) · Movies & TV (6) · Photography (3)


Ads

Latest Posts Recent Comments Comrades


My blog is worth $4,516.32.
How much is your blog worth?


Users & Groups in OS X

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:

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

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

$ 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:

$ group

or…

$ id

Related Posts & Articles

Leave a Comment


Google Search


RSS/Meta Articles