Chapter 5. Controlling Ownership & Permissions

Chapter contents:

  • Understanding file ownership and permissions

  • Finding out who owns what

  • Finding out which group you're in

  • Changing the group association of files and directories

  • Changing ownership of files and directories

  • Changing permissions

  • Translating mnemonic permissions to numeric permissions

  • Changing permission defaults

UNIX is a multi-user system in which your files are separate from Jane's files, which are separate from Joe's files, and so on. Any file you create is separate from other users' files and usually cannot be directly accessed by Jane, Joe, or any other user.

Occasionally, though, you will need to share files. For example, you might be collaborating on a project with Jane where sharing ...

Get Unix: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.