Hot answers tagged

23

The command dscacheutil -q group will output all groups with their name, ID numbers, and list of members. Be warned, when I say it will output all the groups, I mean all the groups, including built-in system ones mortals were never meant to see. I'm just saying, don't freak out there are so many groups for a single-user system. root as the superuser is in a ...


17

Alternative methods for listinggroupsand theirgid: List sorted by group name: dscl . list /Groups PrimaryGroupID List sorted by group gid: dscl . list /Groups PrimaryGroupID | tr -s ' ' | sort -n -t ' ' -k2,2 List groups with members: dscl . list /Groups GroupMembership Note: neither dscacheutil nor dscl list members of the group staff other than root....


15

Try the command given below. id -Gn [user] On my Mac, the output from id -Gn davidanderson is given below. staff everyone localaccounts _appserverusr admin _appserveradm _lpadmin _appstore _lpoperator _developer _analyticsusers com.apple.access_ftp com.apple.access_screensharing com.apple.access_ssh 2 1 The delimiter could be changed from a space to a ...


13

There's only one reliable way to get all members of a group in OS X and the reply from 2DD8847 covers that. As for "why" I can't offer a logical explanation. All I can tell you is what differentiates the results. These approaches fail to include users that are only members of the group via PrimaryGroupID. One way to think of it is that these users not ...


9

One way to change your group is through the MacOS System Preferences panel. Open it, and then open the Users & Groups panel. Unlock the lock icon in the bottom-left so that you can enter your password and make changes. Once the panel is unlocked, you can right-click (or option-click) on the user you want to change and select Advanced Options from the ...


8

Staff is the default group that all users on OS X are in. You're simply seeing that 'staff' is the group that's set to have read permissions on your home directory (as it should be). Although the group has read permissions on that directory, you'll notice that they do not have read permissions on most folders and files within. Here is some additional info ...


8

Recent apps This is recently-opened applications, which is on by default in macOS Mojave. To disable, open System Preferences > Dock, and uncheck Show recent applications in Dock.


7

EDIT: The problem is now fixed in Homebrew: https://github.com/mxcl/homebrew/commit/8aa4f9dd3bbd885350776171d3d9403d381e1a59 If you still experience the problem, update Homebrew like this: brew update If you want to know what the problem was, I have kept my original answer below. Ignore the permisson issue for now I am experiencing the exact same ...


7

The reason that script doesn't delete all the bogus groups is that it only repeats 50 times, so it will only delete 50 in one go. This script will delete every group with the name that you input (it asks you with a dialog box) until it can't find any more: set counter to 0 display dialog "Name of group to delete?" default answer "" set theGroupName to text ...


5

By default, new files inherit the group assigned to the directory they're created in. /tmp (actually /private/tmp) is assigned to the wheel group, therefore your new files created there get assigned to the wheel group. BTW, if you're worried that this assignment is going to cause problems, don't. The default permissions on new files in macOS gives the group ...


5

Yes, you can do it, but it's a bit complicated. Permissions on macOS are rather complex; the Finder hides most of the complexity, but at the command line it's fully exposed and you have to deal with it. Really short answer: use chmod +a to add access control entries, ls -le to view them, and man chmod and man ls for details. Medium-length answer: to add (...


4

What exactly do you want to achieve/do? This command lists all users in the staff group: dscl . -list /Users PrimaryGroupID | grep ' 20$' Source Explanation: The staff group has the PrimaryGroupID of 20.


4

'staff' is a group your user account belongs to. You can find all groups as output of groups yourusername


3

Select the group Click "Edit" in the menubar Click "Delete Group" Click Delete


3

This cannot be done on the phone. You can sync your contacts to a Mac and do the changes from Address Book on the Mac. You can also do this via iCloud.com.


3

Here is a script written quickly. Should work. But I have not revised it down to be efficient. tell application "Contacts" (*get the names of all groups *) set theGroupNames to name of groups (*choose you current group, the one to keep entries*) set text_returnedCurrent to choose from list theGroupNames with prompt "Choose Current Group" ...


3

Try this command to remove the user from a particular group dseditgroup -o edit -d $Username -t user $GroupName dseditgroup -o edit -d _denyhosts -t user workgroup


3

Go to "groups" in "Contacts" and uncheck all the groups except the one the contact you want to move is in. Search for the contact you want to move and "Share" the contact to your own email address or phone # via text. Click "edit" on the contact you just sent and delete it. Go back to Groups and uncheck the group the contact was sent from. Leave only the ...


3

On my iPhone iOS v9.3.5 the method requires sliding left the desired chat: Then you will have the delete option ("Eliminar", my device is in spanish, sorry) :


3

To list all the groups to which a user belongs, type: id [username] [username] argument is optional. By default, the logged in user is assumed. The output will include the numeric user id uid, and the list of all the groups along with their group id gid, of which the user is member of. The first group in the output is the user's primary group. To list ...


2

Use Orbi Tools. Can be downloaded from App Store.


2

Use the find command (and save the output listing. This may take a while) find / -group messagebus -print to ensure that ownership for files can be corrected later with a chgrp command. The following be used dscl . -change /Groups/messagebus PrimaryGroupID 20 10000


2

TL;DR (1) Yes and (2) yes (but can be no depending on configuration). If all the recipients are on iMessage, then it will be an entirely group thing. Everyone sees everyone, and everyone gets all replies. If you have Group Messaging disabled under Settings.app > Messages > Group Messaging, then they will send as individual text - replies will be separate. ...


2

From what I have seen the minute a non iMessage user is added to a bulk message it sends all the messages via SMS. I suspect however this is dependant on the carrier more then apple. From testing, the verification of whether a user has iMessage enabled is done before the message is actually sent. My best advice is for you to try it out and see. I don't ...


2

Sorry but things do not look good for Workgroup Manager. From http://support.apple.com/kb/ht1822: Note: Workgroup Manager and previous versions of Server app are not compatible with Yosemite.


2

I fired up WGM on my Lion Server and connected to the Local Directory of a freshly installed 10.10 server with no problem. That's a start but of course I have to try again once I have set up OD.


2

Found the answer that works from in a 4 year old post on this board. This creates the user, and the group, with the specific gid. dscl . -create /Users/vmail UniqueID 5000 PrimaryGroupID 5000 RealName "vmail" It can be checked, because it runs silently, with the following. The command in my case gives the following output. bash-3.2# dscl . -read /Users/...


2

This doesn't work on Chrome for Mac, so it may be the same on Windows & require that you use a different browser to achieve it... Go to https://www.icloud.com/#contacts In the left column, select your required group Gear menu, bottom left - Select All, then Export vCard The exported file contains all the contact details for that group of contacts. ...


2

The group classification is inherited from the directory in which the file is created in.


2

For your purposes, it's best not to add yourself to an existing group. To discover what groups are on your computer you will find most listed in /etc/group - less /etc/group will give it to you. You can create a new group by adding it to this list. man group will explain the format of this file. I usually create a group with an id from 600 to 699. Apple ...


Only top voted, non community-wiki answers of a minimum length are eligible