Chapter 5. Ownership and Permissions

This hour focuses on teaching the basics of Unix file permissions. Topics include setting and modifying file permissions with chmod, analyzing file permissions as shown by the ls -l command, and setting up default file permissions with the umask command. Permission is only half the puzzle, however, and you also learn about file ownership and group ownership, and how to change either for any file or directory.

Goals for This Hour

In this hour, you will learn how to

  • Understand file permissions settings

  • Understand directory permissions settings

  • Modify file and directory permissions with chmod

  • Set new file permissions with chmod

  • Establish default file and directory permissions with umask

  • Identify the owner and group for ...

Get SAMS Teach Yourself Unix in 24 Hours FOURTH EDITION 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.