Challenge - 5 Problems
Permission Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of the permission check command?
You run the command
ls -l file.txt and see the permissions as -rw-r--r--. What does this mean for the file's owner?Attempts:
2 left
💡 Hint
Look at the first three permission characters after the dash.
✗ Incorrect
The first three characters after the dash represent the owner's permissions. 'rw-' means read and write are allowed, but execute is not.
💻 Command Output
intermediate2:00remaining
What permission does 'chmod u+x file.sh' add?
You run
chmod u+x file.sh. What permission is added to the file for the owner?Attempts:
2 left
💡 Hint
The 'u' stands for user (owner), and '+x' means add execute.
✗ Incorrect
The command adds execute permission (+x) only for the user (owner) of the file.
📝 Syntax
advanced2:00remaining
Which command correctly removes write permission for group?
You want to remove write permission for the group on a file named
data.txt. Which command does this correctly?Attempts:
2 left
💡 Hint
The syntax is 'chmod [who][+/-][permission] file'.
✗ Incorrect
Option A uses the correct syntax to remove (-) write (w) permission for group (g).
💻 Command Output
advanced2:00remaining
What is the output of 'stat' showing permissions in octal?
You run
stat -c '%a' script.sh and get 755. What does this mean for the file permissions?Attempts:
2 left
💡 Hint
Octal 7 means read+write+execute; 5 means read+execute.
✗ Incorrect
Octal 7 = 4+2+1 = read+write+execute; 5 = 4+1 = read+execute. So 755 means owner rwx, group rx, others rx.
🚀 Application
expert3:00remaining
How many files have execute permission for others?
You run
How many files have execute permission for others?
ls -l and see these permissions for files:-rw-r--r---rwxr-xr-x-rw-rw-r---rwxrwxrwxHow many files have execute permission for others?
Attempts:
2 left
💡 Hint
Look at the last character in the permission string for others.
✗ Incorrect
Files 2 and 4 have 'x' in the last position, meaning others have execute permission.