All Questions
6 questions
40
votes
3
answers
81k
views
Understanding the 'staff' user group
It's known that all users are members of the 'staff' group. If you setup a standard user and create any file, a list of that file in the terminal with 'ls -la' shows the user group to be 'staff'.
...
0
votes
2
answers
776
views
"newgrp: too many groups" - why is it complaining?
In my earlier question, I got a response recommending the "newgrp" command. It diligently did the job of putting my desired group at the "top of the list" for the "id" command, but, why does it also ...
0
votes
1
answer
415
views
Command Line - How do I change the order of a user's group memberships?
I have a troublesome Mac OS X server to deal with. When I ask for my current group membership using this:
$ groups | perl -p -e 's/ /\n/g'
I get a list of 20+ groups!
cactuar
com.apple.sharepoint....
2
votes
1
answer
1k
views
Fixing two user groups with the same ID
Suddenly, my home directory is in the group messagebus instead of the usual staff.(I blame texlive for this, but have no evidence.)
The problem is that both groups have the same ID:
$ dscl . -read /...
1
vote
1
answer
9k
views
How to remove group membership from user using the Lion Terminal?
How to remove a self created daemon user named '_denyhosts' from group 1025(workgroup), 403(com.apple.sharepoint.group.2), 404(com.apple.sharepoint.group.3) and 405(com.apple.sharepoint.group.4) using ...
18
votes
3
answers
54k
views
How to add user to a group on command line?
With Linux/Unix, I can use useradd -G developers vivek to add vivek to the developer group. How can I do the same thing with Mac OS X?
Then, how do I check if vivek is in developers group?