Workbook 4 Flashcards
In the output of a long listing (ls -l), which field indicates (i) the user owner and (ii) the group owner?
The second and third field. [4/4]
What are the three permission types for regular files and their symbols?
Read (R), Write (W), Execute (X). [4/5]
What does having the r permission for a regular file enable a user to do?
Read the contents of a file. [4/5]
What does having the w permission for a regular file enable a user to do?
Write changes to the file. [4/5]
What does having the x permission for a regular file enable a user to do?
Use the file as a command [4/5]
What are the three access classes and their symbols?
User Owner (U), Group Owner (G), and Other (O). [4/5]
If a file’s permissions are rwxr-xr-x, what are the permissions of each of the three access classes?
User Owner: Read, Write, and Execute.
Group Owner: Read and Execute.
Other Users: Read and Execute. [4/5]
When you try to access a file, what questions does Linux ask and in what order?
- Does the user own this file? ‘Owner’ permissions used.
- Is the user a member of the group that owns the file? ‘Group’ permissions used.
- ‘Other’ permissions used. [4/5]
What are the default permissions for regular files newly created by a normal user?
-rw-rw-r– [4/5]
To execute a file, what permission(s) does a user need for the file?
Executable permissions (X) [4/6]
What are the permissions always for a symbolic link?
Full permissions. rwxrwxrwx. [4/7]
Which user(s) can chmod a file?
The file owner, and root. [4/17]
Which user(s) can chown a file?
Only root. [4/17]
Which user(s) can chgrp a file?
The file owner, and root. [4/17]
How is the group owner determined for a newly created file?
By the current primary group for the user that created the file. [4/16]
What members comprise a user’s private group?
Only the user that it belongs to. [4/17]
Can the user owner of a file change the group ownership of that file to any group?
They can only change the group owner to a group they are currently a member of. [4/17]