CHAPTER 14Setting Ownership and Permissions

As a multiuser OS, Linux provides tools to help you secure your files against unwanted access—after all, you wouldn’t want another user to read your personal files or even delete your work files, whether accidentally or intentionally. Linux handles these tasks through two features of files and directories: their ownership and their permissions. Every file has an associated owner (an account with which it’s linked) and also an associated group. Three sets of permissions define what the file’s owner, members of the file’s group, and all other users can do with the file. Thus ownership and permissions are intertwined, although you use different text-mode commands to manipulate them. (GUI tools often ...

Get Linux Essentials, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.