← All challenges
easylinux~20 min

Set up a team's users and groups

A new team needs accounts with the right group access. Developers, deploy, and one person who spans both. Write the user and group commands, graded on the resulting memberships.

Scenario

A new team is onboarding. Set up their Linux accounts and group memberships with least privilege, each person in exactly the groups they need, no more.

Required end state

| user | groups | |------|--------| | alice | developers | | bob | developers, deploy | | carol | deploy |

Both groups (developers, deploy) must exist.

Your job

Write the commands in setup.sh (groupadd, useradd, usermod -aG, gpasswd -a …). The grader applies them and checks the resulting memberships: alice must not end up in deploy, carol must not end up in developers.

Teaches: Linux user and group administration and least-privilege access, the foundation of multi-user system management.

What gets checked

Your solution is verified against each of these:

  • The developers and deploy groups exist
  • alice is in developers (and not deploy)
  • bob is in both developers and deploy
  • carol is in deploy (and not developers)

Solve it in your browser

No setup, no install. Write your solution in the editor and hit Check. The in-house engine renders and grades it instantly, then issues your proof the moment every check passes.

Solve in browser →

Prefer your own lab?

  1. Build the fix locally. New to the tooling? See setting up your lab.
  2. Push your topology file, device configs, and any playbooks to a public repo (GitHub or GitLab).
  3. Submit the repo link. We review it by hand, confirm it works, and issue your proof page.
Submit your solution →