Adding a user to a group

date of original post on Blogger: Sept. 18, 2007

Mac OsX does not use the usual Unix user and group administration tools. It has it’s own application – called netinfo (see man netinfo) and a gui for that, called Netinfo Manager and located in /Applications/Utilities. You need to have administrator privileges to use it for modification.

When you open Netinfo Manager, you can browse a set of items, among which users and groups. When you select a user or a group, you’ll see a set of properties and values. Each grup is identified by a gid number, and each user by a uid number – and a gid that refers to its default group.
If you want a user to belong also to other groups (say e.g. to group www), you need to add the name (not the gid) of the user to group www’s “users” property. If the “users” property (in groups -> www) does not exist – by default it’s not there – , you need to create it by using the “new” icon top left.

If instead you want to do it from command line, take a look here (I did not try this solution).

Posted in Admin
One comment on “Adding a user to a group
  1. ronchet says:

    Apple has removed netinfo in 10.5, so the above solution is no longer valid.

    It is now possible by using the dseditgroup command from a terminal.
    See man dseditgroup for details. Also, you could take a look a this page.

Leave a Reply

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

You are commenting using your 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 )


Connecting to %s

%d bloggers like this: