To effectively control who can do what in the file system, you need to first consider who “owns” files and directories. We’re going to discuss the following in this regard:
• How ownership works
• Managing ownership from the command line
Let’s start by discussing how ownership works.
Anytime a user creates a new file or directory, his or her user account is assigned as that file or directory’s “owner.” For example, suppose the ksanders user logs in to her Linux system and creates a file named contacts.odt using OpenOffice.org in her home directory. Because she created this file, ksanders is automatically assigned ownership of contacts.odt. By right-clicking on this file in the system’s graphical user interface ...