Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How can I know the owner of a file in OS X?

How can I know what's the owner of a file in finder > get info?

User uploaded file

Posted on Mar 26, 2016 12:14 AM

Reply
7 replies
Sort By: 

Mar 26, 2016 1:59 AM in response to rodion15

The top name in the Get Info's Sharing & Permissions section will be the file owner. A file owned by root will show system as the user.


The following AppleScript one-liner will display the user name associated with the selected file icon — just to confirm the first sentence.


tell application "Finder" to display dialog (owner of item (selection as alias)) as text

Reply

Mar 30, 2016 11:24 AM in response to rodion15

Not sure if the order is deterministic, and the names used for the users do differ. User root is shown as system in Finder, for instance.


Launch Terminal.app and use ls -ale or ls -aled to have a look for yourself.


$ ls -aled /Applications/Safari.app

drwxr-xr-x+ 3 root wheel 102 Mar 30 08:49 /Applications/Safari.app

0: group:everyone deny delete

$


Above app bundle (which is a directory, hence the use of -d in -aled) is owned by root, and the group is wheel.


Finder doesn't appear to display the underlying ownership and group settings directly. Which may well be deliberate.

Reply

Mar 30, 2016 12:57 PM in response to VikingOSX

To know the owner: select the file or folder, press Command+i (or File > get info), then you'll see the permissions listed in the order you listed:

user

group

other

so, if there're permissions for several users, you'll see them listed first, THE BOTTOM-MOST USER IS THE OWNER. So, in the picture above: test is the owner of the file.

Reply

Mar 31, 2016 6:18 AM in response to rodion15

rodion15 wrote:


To know the owner: select the file or folder, press Command+i (or File > get info), then you'll see the permissions listed in the order you listed:

user

group

other

so, if there're permissions for several users, you'll see them listed first, THE BOTTOM-MOST USER IS THE OWNER. So, in the picture above: test is the owner of the file.


The following is from Safari on one of the local systems. In this case, the owner is the second entry shown, and the first entry is for an access control list entry.


$ ls -aled /Applications/Safari.app

drwxr-xr-x+ 3 root wheel 102 Mar 30 08:49 /Applications/Safari.app

0: group:everyone deny delete

$

User uploaded file

Reply

How can I know the owner of a file in OS X?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.