Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Add a group from the command line UNIX
Perhaps it is covered somewhere, but I couldn't find it as a hint. To add a UNIX group (say mygroup, with id 999), you need to do the following in the Terminal:
 % sudo niutil -create / /groups/mygroup
% sudo niutil -createprop / /groups/mygroup gid 999
[Editor's note: You can, of course, use NetInfo Manager in the GUI to do the same thing, but this is useful if you ever need to create groups via a remote connection.]
    •    
  • Currently 2.67 / 5
  You rated: 4 / 5 (3 votes cast)
 
[8,937 views]  

Add a group from the command line | 1 comments | Create New Account
Click here to return to the 'Add a group from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
is there a way to extract gid's used?
Authored by: WAW401 on Nov 27, '02 03:52:58PM

I have practiced adding users and groups from the CL, but is there a way to extract via the CL the highest gid/uid value for all groups/users?

Something like the SharePoints preference pane does.



[ Reply to This | # ]