Mastering OS X permissions with chown Part 1

chown

Means to change ownership of a file. CH-change OWN-owner and group. From the man pag.: 

The chown utility changes the user ID and/or the group ID of the specified files.

Why do I care

Every file in an operating system must be owned by something. Here are some examples.

root:wheel

root:admin

Local:1000

Adam:DOMAIN

When building packages, it is often necessary to change ownership of a file.

Example: Lets say I save a file to my desktop called dangerzone.pkg . It will change the file ownershp to Adam:1000 This means that my user ID is adam and my group membership number is 1000. If I want to change ownership to root:wheel I would use the following command.

 

 

 

 




One Last Thing

Need to hash out more with a human being? We are available for consulting!
Feel free to contact us about consulting or just to say hi.