Challenge - 5 Problems
User Management Security Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Why does limiting user permissions improve system security?
Imagine a shared computer where everyone can install any software they want. What is the main reason limiting user permissions helps keep the system safe?
Attempts:
2 left
💡 Hint
Think about what could happen if everyone could change system files.
✗ Incorrect
Limiting user permissions stops users from changing or deleting critical system files, which helps prevent accidental damage or malicious attacks.
💻 Command Output
intermediate1:00remaining
What is the output of the user listing command?
You run the command
cut -d: -f1 /etc/passwd on a Linux system. What does this command output?Linux CLI
cut -d: -f1 /etc/passwd
Attempts:
2 left
💡 Hint
The /etc/passwd file stores user account information separated by colons.
✗ Incorrect
The command extracts the first field (username) from each line in /etc/passwd, listing all system users.
📝 Syntax
advanced1:30remaining
Which command correctly adds a new user with a home directory?
You want to add a new user named 'alex' and create a home directory for them. Which command is correct?
Attempts:
2 left
💡 Hint
The '-m' option creates a home directory with useradd.
✗ Incorrect
The 'useradd -m alex' command adds user 'alex' and creates their home directory. Other options are invalid or incorrect syntax.
🔧 Debug
advanced1:30remaining
Why does this user deletion command fail?
You run
userdel alex but the user's home directory remains. Why?Linux CLI
userdel alex
Attempts:
2 left
💡 Hint
Check the command options for deleting home directories.
✗ Incorrect
The 'userdel' command removes the user but leaves the home directory unless the '-r' option is used.
🚀 Application
expert2:00remaining
How to securely allow a user to run a specific command as root?
You want to let user 'jane' run only the command
systemctl restart apache2 with root privileges without giving full root access. Which approach is best?Attempts:
2 left
💡 Hint
Sudoers file controls specific command permissions.
✗ Incorrect
Using sudoers to restrict commands lets 'jane' run only that command as root, improving security by limiting access.