add user to group in Leopard

Derek Chesterfield dez at mac.com
Mon Dec 10 07:37:54 PST 2007


On 10 Dec 2007, at 14:47, David Herren wrote:

> Could someone post a simple procedure for adding existing users to  
> existing groups now that NetInfo is gone.

I don't think there is a GUI way in OS X client. You can change the  
*primary* group of an account, so long as you know the group ID. In  
SysPrefs/Accounts, right-click the user, and change the primary group  
ID in the Advanced settings.

If it isn't the primary group you want to change, you need to use the  
Directory Services command line. This command will add the user to the  
group:

sudo dscl . append /Groups/<groupname> GroupMembership <shortusername>


More information about the MacOSX-talk mailing list