Regular File Ownerships and Permissions Flashcards
Files have a…?
user owner, group owner, and a set of permissions.
Three permission types…?
(r)ead, (w)rite, and e(x)ecute.
Three access classes…?
(u)ser owner, (g)roup owner, and (o)ther.
Viewing ownerships and permissions…?
ls -l
Modifying ownerships and permissions…?
chmod, chgrp, and chown.
Linux is a multiuser environment, so many different people are often…?
working with a single set of files and directories a the same time. (Some of these files are intended to be shared, so that many people can view and edit the file. For example, someone might be listing suggested gifts they would like to receive for an upcoming birthday. The more people who are able to read the file, the better. Other files, the user might want to keep private. Few people would want anyone else to be able to read their diary. Someone might want a file to be readable to everyone on the system, and allow a few select users on the system to modify the file as well.)
Every file in Linux has three properties that allows users to control…?
who can access the file and how: a user owner, a group owner, and a set of allowed permissions.
When a user creates a file, that user becomes the…?
file’s user owner, and (usually) the primary group of the user becomes the file’s group owner.
A user cannot change the user owner of a file, but a user has some abilities to change the group owner. The permission bits define how…?
three different classes of users can user the file: the file’s owner, members of the group that owns the file, and everyone else.
When deciding who can access a file, a user can distinguish between…?
three types of permissions.
Someone can view a file if they have …?
read permissions.
Some can modify a file if they have…?
write permissions.
Someone can use the file as a command if they have…?
execute permissions.
In order to start up an application or run a script, the file containing the application or script must be…?
Executable. (Normal (data) files do not use the executable permission type)
Each file has a set of read, write, and execute permissions for three different classes of file access. The first set is used for…?
The second set is used for…?
And the last set is used for…?
First set = owner of a file
Second set = members of the group that owns the file.
Third set = Used for everyone who doesn’t fit into the first two groups.