Workbook 4 File Ownership and Permissions: Chapter 1: Regular File Ownership and Permissions Flashcards
In the output of a long listing (ls -l), which field indicates
(i) the user owner
and
(ii) the group owner?
(i) Third Field
(ii) fourth Field [4]
What are the three permission types for regular files and their symbols?
-rw-rw-r–
What does having the r permission for a regular file enable a user to do?
Read
What does having the w permission for a regular file enable a user to do?
Write
What does having the x permission for a regular file enable a user to do?
Execute
What are the three access classes and their symbols?
- (u)ser owner
- (g)roup owner
(o) ther
If a file’s permissions are rwxr-xr-x, what are the permissions of each of the three access
classes?
(u) ser: read write execute
(g) roup: read execute
(o) ther read execute
When you try to access a file, what questions does Linux ask and in what order?
- Does the user own the file? If so, the user permissions are used.
- Is the user a member of the group that owns the file? If so, the group permissions are used.
- Otherwise, the other permissions are used.
What are the default permissions for regular files newly created by a normal user?
user owns the file, and as the file owner, he has read and write permissions. Users
other than elvis can only read the file. [5]
To execute a file, what permission(s) does a user need for the file?
(w)rite permission [6]
What are the permissions always for a symbolic link?
rwxrwxrwx