Today's goal is to practice user and group management by completing hands-on challenges.
Figure out how to:
- Create users and set passwords
- Create groups and assign users
- Set up shared directories with group permissions
Use what you learned from Days 1-7 to find the right commands!
- A markdown file:
day-09-user-management.md - Screenshots of command outputs
- List of commands used
Create three users with home directories and passwords:
tokyoberlinprofessor
Verify: Check /etc/passwd and /home/ directory
Create two groups:
developersadmins
Verify: Check /etc/group
Assign users:
tokyo→developersberlin→developers+admins(both groups)professor→admins
Verify: Use appropriate command to check group membership
- Create directory:
/opt/dev-project - Set group owner to
developers - Set permissions to
775(rwxrwxr-x) - Test by creating files as
tokyoandberlin
Verify: Check permissions and test file creation
- Create user
nairobiwith home directory - Create group
project-team - Add
nairobiandtokyotoproject-team - Create
/opt/team-workspacedirectory - Set group to
project-team, permissions to775 - Test by creating file as
nairobi
Stuck? Try these commands:
- User:
useradd,passwd,usermod - Group:
groupadd,groups - Permissions:
chgrp,chmod - Test:
sudo -u username command
Tip: Use -m flag with useradd for home directory, -aG for adding to groups
Create day-09-user-management.md:
# Day 09 Challenge
## Users & Groups Created
- Users: tokyo, berlin, professor, nairobi
- Groups: developers, admins, project-team
## Group Assignments
[List who is in which groups]
## Directories Created
[List directories with permissions]
## Commands Used
[Your commands here]
## What I Learned
[3 key points]Permission denied? Use sudo
User can't access directory?
- Check group:
groups username - Check permissions:
ls -ld /pathcd
- Fork this
90DaysOfDevOpsrepository - Navigate to
2026/day-09/folder - Add your
day-09-user-management.mdwith screenshots - Commit and push
Share your Day 09 progress on LinkedIn:
- Post about completing the user management challenge
- Share one thing you figured out
- Mention real-world DevOps use
Use hashtags:
#90DaysOfDevOps
#DevOpsKaJosh
#TrainWithShubham
Happy Learning TrainWithShubham