add user to group in Leopard

View: New views
6 Messages — Rating Filter:   Alert me  

add user to group in Leopard

by David Herren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

I hear lots of bitching and moaning about NetInfo, but at least there  
was a UI for administering it... Leopard is sorely lacking in the user  
management area as far as I am concerned...

/david

--
david herren-lage - shoreham, vt

"We spent a lot of time talking about Africa, as we should. Africa is  
a nation that suffers from incredible disease."

-George W. Bush, Gothenburg, Sweden, Jun 14, 2001





_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@...
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Re: add user to group in Leopard

by Derek Chesterfield :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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>
_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@...
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Re: add user to group in Leopard

by John Musbach-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Dec 10, 2007 6:47 AM, David Herren <david@...> wrote:
> Could someone post a simple procedure for adding existing users to
> existing groups now that NetInfo is gone.

System Prefs>Accounts>Right click account in question>Click advanced>enjoy



--
Best Regards,

John Musbach
_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@...
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Re: add user to group in Leopard

by David Herren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Dec 11, 2007, at 2:11 AM, John Musbach wrote:

> On Dec 10, 2007 6:47 AM, David Herren <david@...> wrote:
>> Could someone post a simple procedure for adding existing users to
>> existing groups now that NetInfo is gone.
>
> System Prefs>Accounts>Right click account in question>Click  
> advanced>enjoy

You may have misunderstood my question. In that UI there is no way to  
_add_ an _existing_ group to an _existing_ user, not _change_ an  
existing users _primary_ group. The accounts interface allows one  
create a _new_ group by clicking the plus to add a user but then  
switch the popup to a group, and then add existing users to your new  
group. But if I want to add a user who already has an account and home  
directory, to a group already on the machine, the UI you suggest does  
not allow for that.


/david

--
david herren-lage - shoreham, vt

"Neither in French, nor in English, nor in Mexican."

-George W. Bush declining to answer reporters' questions at the Summit  
of the Americas, Quebec City, Apr 21, 2001





_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@...
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Re: add user to group in Leopard

by Neil Laubenthal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Quoting David Herren <david@...>:

> You may have misunderstood my question. In that UI there is no way to
> _add_ an _existing_ group to an _existing_ user, not _change_ an
> existing users _primary_ group. The accounts interface allows one
> create a _new_ group by clicking the plus to add a user but then switch
> the popup to a group, and then add existing users to your new group.
> But if I want to add a user who already has an account and home
> directory, to a group already on the machine, the UI you suggest does
> not allow for that.


I'm not at home where I can look . . . but try the Sharing pane; there  
is some ability to manipulate users and groups there as well. I think  
you can do this directly from that preference pane.



_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@...
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Re: add user to group in Leopard

by Finlay Dobbie :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Dec 11, 2007 11:08 AM, David Herren <david@...> wrote:
> You may have misunderstood my question. In that UI there is no way to
> _add_ an _existing_ group to an _existing_ user, not _change_ an
> existing users _primary_ group.

I believe you mean add an existing USER to an existing GROUP.

If you create your own group, a new Groups disclosure appears
alongside "Other Accounts", which then lets you select group
membership by a bunch of checkboxes. There is, however, no way to edit
membership for existing groups.

The best way of directly manipulating groups at the low-level is to
use the dseditgroup command. See its manpage for more information.

 -- Finlay
_______________________________________________
MacOSX-talk mailing list
MacOSX-talk@...
http://www.omnigroup.com/mailman/listinfo/macosx-talk