It means the owner can read, write, and execute; the group can read and execute; others can only read.
Click to reveal answer
beginner
What does each letter in rwxrwxrwx represent?
r: read permission
w: write permission
x: execute permission
Repeated for owner, group, and others in that order.
Click to reveal answer
beginner
How many permission sets are shown in rwxrwxrwx and who do they belong to?
There are three sets: owner (first 3 letters), group (middle 3 letters), and others (last 3 letters).
Click to reveal answer
beginner
What does a dash - mean in permission notation like rw-r--r--?
A dash means that the permission is not granted. For example, - in place of x means no execute permission.
Click to reveal answer
intermediate
How can you change file permissions using symbolic notation in Linux?
Use the chmod command with symbols like u (owner), g (group), o (others), and +, -, = to add, remove, or set permissions.
Click to reveal answer
In rwxr-xr--, what permission does the group have?
AWrite only
BRead, write, and execute
CRead and execute
DNo permissions
✗ Incorrect
The group has r-x which means read and execute permissions.
What does the x permission allow a user to do?
ADelete the file
BWrite to the file
CRead the file
DExecute the file or enter the directory
✗ Incorrect
The execute permission allows running a file as a program or entering a directory.
If a file has permissions rw-r--r--, who can write to it?
AOwner only
BGroup only
COthers only
DEveryone
✗ Incorrect
Only the owner has write permission indicated by w in the first set.
What does the first character in a long permission string like -rwxr-xr-x indicate?
AOwner permission
BFile type (e.g., file or directory)
CGroup permission
DOthers permission
✗ Incorrect
The first character shows the file type: - for file, d for directory.
Which command changes permissions using numeric notation?
Achmod 755 filename
Bls -l filename
Ccat filename
Dpwd
✗ Incorrect
chmod 755 filename sets permissions using numeric notation.
Explain the meaning of the permission string rwxr-xr-- in simple terms.
Break it down into three groups of three letters.
You got /4 concepts.
Describe how you would change a file to allow only the owner to write, but everyone to read and execute.
Think about symbolic or numeric notation for permissions.
You got /4 concepts.
Practice
(1/5)
1. What does the permission notation rwxr-xr-- mean for the group?
easy
A. No permissions
B. Read, write, and execute permissions
C. Write and execute permissions only
D. Read and execute permissions only
Solution
Step 1: Identify the group permission segment
The permission string is divided into three groups: user (rwx), group (r-x), others (r--). The group segment is the middle three characters: r-x.
Step 2: Interpret the group permissions
In r-x, r means read, - means no write permission, and x means execute permission.
Final Answer:
Read and execute permissions only -> Option D
Quick Check:
Group = r-x = read + execute [OK]
Hint: Look at the middle three letters for group permissions [OK]
Common Mistakes:
Confusing user permissions with group permissions
Assuming dash means write permission
Mixing up execute (x) with write (w)
2. Which of the following is the correct permission notation for a file where others have only execute permission?
easy
A. rwxrwx--x
B. rwxrwxr--
C. rwxrwxrwx
D. rwxrwx---
Solution
Step 1: Understand the position of others' permissions
The permission string has three groups of three characters: user, group, others. The last three characters represent others' permissions.
Step 2: Identify execute-only permission for others
Execute permission is x, and no read or write means dashes -. So others' permissions should be --x.
Step 3: Match the options
rwxrwx--- ends with --- (no permissions). rwxrwxr-- ends with r-- (read only). rwxrwxrwx ends with rwx (all permissions). rwxrwx--x ends with --x (execute only).
Final Answer:
rwxrwx--x -> Option A
Quick Check:
Others execute permission = last x in string [OK]
Hint: Others' permissions are the last three characters [OK]
Common Mistakes:
Confusing read (r) with execute (x)
Ignoring the position of others' permissions
Assuming dashes mean execute permission
3. What is the numeric (octal) permission equivalent of rw-r--r--?
medium
A. 664
B. 644
C. 755
D. 777
Solution
Step 1: Convert each permission group to octal
Permissions are grouped as user (rw-), group (r--), others (r--). For each group, read = 4, write = 2, execute = 1, dash = 0. User: r(4) + w(2) + -(0) = 6 Group: r(4) + -(0) + -(0) = 4 Others: r(4) + -(0) + -(0) = 4
Step 2: Combine the octal digits
Combine user, group, others digits: 6 4 4
Final Answer:
644 -> Option B
Quick Check:
rw- = 6, r-- = 4, r-- = 4 [OK]
Hint: Add 4 for r, 2 for w, 1 for x in each group [OK]
Common Mistakes:
Mixing up write and execute values
Adding execute permission when not present
Confusing group and others positions
4. You see the permission string rwxr-xr-x on a file, but the owner cannot write to it. What is the likely cause?
medium
A. The write permission is missing for the owner
B. The file is a directory, not a file
C. The file is owned by a different user
D. The execute permission is missing for the owner
Solution
Step 1: Analyze the permission string for owner
The first three characters rwx mean the owner has read, write, and execute permissions.
If the owner cannot write, but permissions show write allowed, the likely cause is that the current user is not the owner of the file. Permissions apply to the file's owner, group, and others accordingly.
Final Answer:
The file is owned by a different user -> Option C
Quick Check:
Owner write permission present but user mismatch [OK]
Hint: Check if you are the file owner when permissions seem correct [OK]
Common Mistakes:
Assuming permission string always matches current user rights
Confusing execute with write permission
Ignoring file ownership
5. You want to set a file permission so that the user has all permissions, the group can read and execute only, and others have no permissions. Which permission notation should you use?
hard
A. rwxr-x---
B. rwxrwxr--
C. rwxr-----
D. rwxr-xr-x
Solution
Step 1: Define permissions for each group
User: all permissions = rwx Group: read and execute = r-x Others: no permissions = ---