Linux User Group Management with Access Control

Day 09 of #90DaysOfDevOps 🚀 Linux User & Group Management: How Teams Are Built on a Server Today wasn't about one command — it was about understanding how access control really works in Linux. What I built today: → Created 4 users: `tokyo`, `berlin`, `professor`, `nairobi` → Created 3 groups: `developers`, `admins`, `project-team` → Assigned users based on roles → Created shared directories: `/opt/dev-project` and `/opt/team-workspace` → Applied group ownership + `775` permissions → Validated access using `sudo -u` Commands That Matter: ✅ `useradd -m` — create user with home directory ✅ `usermod -aG` — `-a` prevents removing existing groups ✅ `chgrp` — assign shared group ownership ✅ `chmod 775` — team write access, others read-only ✅ `sudo -u user command` — test access safely 💡 Key Insight: Instead of assigning permissions user-by-user, grant access through groups and manage membership. That’s how teams scale securely on Linux. 🔑 Mindset Shift: A missing `-a` in production can silently remove access for users and services. Small flags can create big incidents. #90DaysOfDevOps #DevOpsKaJosh #TrainWithShubham #Linux #DevOps

To view or add a comment, sign in

Explore content categories