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
Linux User Group Management with Access Control
More Relevant Posts
-
Day 11 of #90DaysOfDevOps 🚀 Linux File Ownership: The Other Half of Access Control Permissions tell Linux what can be done to a file. Ownership tells Linux who those permissions apply to. Both must be correct. One wrong ownership in prod can break an entire deployment. What I practiced today: → Identified owner and group columns using `ls -l` → Changed file owner with `chown` → Changed file group with `chgrp` → Changed both owner and group in one command → Applied ownership recursively to an entire directory tree → Set different ownership per file across a multi-team project Commands That Matter: ✅ `chown user file` — change user owner only ✅ `chgrp group file` — change group only ✅ `chown user:group file` — change both in one command ✅ `chown -R user:group dir/` — recursive, applies to all files inside ✅ `ls -lR` — verify ownership across entire directory tree 💡 Key Insight: `chown -R` without the `-R` flag only changes the directory itself — not the files inside. Everything looks fine until your app tries to access a file and gets `Permission denied`. Always use `-R` for directories. 🔑 Mindset Shift: Don’t chown files to individual users in shared environments. Assign to a group. Manage membership. That scales. That’s how production teams operate. #90DaysOfDevOps #DevOpsKaJosh #TrainWithShubham #Linux #DevOps #LearningInPublic
To view or add a comment, sign in
-
#Day_12 – Going Deeper into Advanced Linux (DevOps Journey) Today, I continued exploring Advanced Linux, and now I am understanding how real systems are managed at a deeper level. 👉 Linux is not just usage, it’s about control + optimization. 💡 What I learned today: 🔹 Disk Management fdisk – manage disk partitions mount / umount – attach/detach storage Understanding how storage works in system 🔹 File System Permissions (Advanced) Special permissions (SUID, SGID, Sticky Bit) Better control on file access Important for security 🔹 Process Priority nice – set priority of process renice – change priority Helps manage system performance 🔹 Job Scheduling (Advanced) cron – schedule repeated tasks at – schedule one-time tasks Automating system-level work What I realized today: Advanced Linux is all about system control and performance Security and permissions are very important Automation + optimization = real DevOps work Learning is getting deeper and more practical day by day Let’s keep learning and growing 💪 #Linux #DevOps #AdvancedLinux #Day12 #LearningInPublic #ITSkills #CareerGrowth #trainwithshubham #jhoshbatch10
To view or add a comment, sign in
-
🚀 DevOps Journey Series – Day 4: Linux File System 📂 Today we are going to take a look at the Linux File System — how Linux organizes files and directories in a structured way 💻 In Linux, everything starts from a single root directory 👉 / From there, each folder has a specific purpose 👇 📁 /home – User files and personal data ⚙️ /etc – Configuration files 📦 /var – Logs and variable data 🧠 /proc – Process & system information 🔧 /bin – Essential system commands 📂 /tmp – Temporary files 📚 /usr – User programs & applications 💾 /lib – Shared libraries for programs 🔌 /dev – Device files (hardware access) 📁 /opt – Optional/add-on software 💡 Think of it like a well-organized office 🏢 Each folder has its own responsibility, making everything easy to locate and manage 🔥 Understanding the file system helps you navigate Linux efficiently and is a key step in your DevOps journey 📅 Tomorrow: File Permissions & Ownership 🔐 Stay tuned! #DevOps #Linux #LearningInPublic #TechJourney #CloudComputing
To view or add a comment, sign in
-
-
A bold hook about efficiency or Linux mastery Linux isn't just an OS; it’s a superpower for developers and system admins. I recently came across a breakdown of some essential command-line tips that are too good not to share. The Problem: (e.g., "We often spend too much time doing X manually...") The Solution: (Summarizing the key commands or workflows from the attached PDF). The Benefit: (e.g., "Using these three flags can cut your debugging time in half.") As someone building in the IT space, I’ve found that mastering the CLI is the fastest way to scale operational efficiency. I’ve attached a detailed PDF guide below that dives deeper into these commands. Which Linux command is a "must-have" in your daily workflow? Let’s discuss in the comments! 👇 #Linux #OpenSource #DevOps #SystemAdministration #TechLeadership #Efficiency #TerminalTips #Debian
To view or add a comment, sign in
-
🐧 Package Management in Linux (Install, Update, Maintain) Installing software in Linux is not random — it’s structured and controlled. That’s where package managers come in. 📦 What is a Package Manager? A package manager helps you: • Install software • Update packages • Manage dependencies ⚙️ Common Package Managers 🔹 "apt" (Debian/Ubuntu) 🔹 "yum" / "dnf" (RHEL/CentOS/Fedora) 🛠️ Useful Commands 📥 Install package "apt install nginx" "dnf install nginx" 🔄 Update system "apt update && apt upgrade" "dnf update" ❌ Remove package "apt remove nginx" "dnf remove nginx" 🚀 Why It Matters ✔ Easy software management ✔ Automatic dependency handling ✔ System stays updated and secure ⚠️ Common Mistakes • Not updating package lists • Mixing package managers • Installing from unknown sources 💡 Key Insight Package managers make Linux powerful and manageable at scale. #Linux #DevOps #SystemAdmin #PackageManagement #CloudEngineer #LinuxCommands
To view or add a comment, sign in
-
🚀 What is Cron Job in Linux? (Automate your tasks easily) When I started working on Linux, I used to run tasks manually again and again. Then I discovered Cron Jobs 👇 💡 A cron job is used to schedule tasks automatically at a specific time. --- 📌 Examples: * Daily backup at 2 AM 💾 * Clear logs every Sunday 🧹 * Run a script every 5 minutes ⏱️ --- 🧠 Real-life example: Think of an alarm clock ⏰ 👉 You set the time 👉 It automatically reminds or runs Same way, cron runs tasks without manual effort. --- ⚡ Cron format: `* * * * * command` 👉 5 fields mean: Minute | Hour | Day | Month | Day of Week Example: `0 2 * * * backup.sh` (Runs every day at 2 AM) --- 🔍 Useful commands: `crontab -l` → List cron jobs `crontab -e` → Edit cron jobs --- ⚠️ Common mistake: Forgetting to give full path of command/script 👉 Always use full path in cron jobs --- 💡 Final thought: Don’t repeat tasks manually. Automate them using cron and save your time like a pro 🚀 #Linux #LinuxAdmin #DevOps #CloudComputing #Automation #SystemAdministration #LearningInPublic
To view or add a comment, sign in
-
🚀 Day 8: Linux Internals for DevOps Engineers 👉 Package Management (How Linux Installs Software) In Windows, we download .exe files… But in Linux, things work very differently. There’s a smarter system behind it. 👉 Package Managers. 📌 What I learned today: 🔹 A package = software + dependencies + configs 🔹 Tools like apt handle installation automatically 🔹 Repositories store all available software 🔹 Commands like apt install, apt update, apt remove are essential 💡 Real Scenario: You try to install a package… But you get: ❌ “Unable to locate package” Why? 👉 Because package list is outdated Solution: ✔ sudo apt update Simple, but very common mistake. 🧠 Question for you: Why is it important to update packages regularly in Linux? 👇 Drop your answer! 🎯 Learning Goal: To manage software efficiently and avoid dependency issues in real environments. 📅 Day 9 Tomorrow: Shell Scripting Basics (Automate Your Work) Let’s keep going deeper 🚀 #DevOps #Linux #PackageManagement #SRE #CloudComputing #SoftwareEngineering #TechLearning #LearningInPublic #ITCareers #EngineeringMindset #CareerGrowth
To view or add a comment, sign in
-
Spent some time this week going deeper into Linux user, group and permission management — and it finally clicked 💡 I built a small “team environment” in WSL where I: • Created multiple users • Organised them into groups • Set up a shared project under "/srv/project-app" • Controlled access using "chown", "chmod", and group membership What stood out wasn’t the commands… it was the behaviour: 👉 A directory without "x" (execute) is basically unusable — even if it has read/write 👉 Access isn’t just about the folder — every parent directory in the path matters 👉 Ownership ≠ access — permissions define what users can actually do 👉 Groups are the real way to scale access (not changing owners) I also ran into real-world issues like: • “Permission denied” even when things looked correct • Not being able to "cd" into directories due to missing execute bit • Group changes not applying until refreshing the session ("newgrp") This felt less like “learning Linux commands” and more like understanding how systems are actually designed and secured. Still early in the journey. #Linux #DevOps #LearningInPublic #TechJourney
To view or add a comment, sign in
-
🚀 Understanding the Linux Terminal Prompt While learning Linux, I took some time to deeply understand something we see every day but often ignore — the terminal prompt. Here’s a simple breakdown of what it means 👇 💻 Example: ubuntu@ip-172-31-16-220:~$ 🔍 Breaking it down: • ubuntu → Username (currently logged-in user) • @ → Means “on” • ip-172-31-16-220 → Hostname (machine/server name) • : → Separator between hostname and directory • ~ → Home directory (/home/ubuntu) • $ → Indicates a normal user 👉 If you see # instead of $, it means you are logged in as a root user (admin access). ⚡ Quick Tips: • cd ~ → Takes you to your home directory • sudo su - → Switch to root user • exit → Switch back to normal user 📌 Why this matters? Understanding the terminal prompt helps you: ✔ Navigate confidently in Linux ✔ Avoid mistakes while working as root ✔ Improve efficiency in DevOps & system administration This is a small concept, but it builds a strong foundation for working with Linux systems. #Linux #DevOps #BeginnerFriendly #LinuxBasics #CloudComputing #LearningJourney #TrainWithShubham #AbhishekVeeramalla
To view or add a comment, sign in
-
-
How often do you find yourself Googling that one specific Linux command? As someone deeply passionate about System Integration and the DevOps ecosystem, Linux is at the core of almost everything I do. Whether it's troubleshooting production environments, optimizing data flows, or managing system services, having the right command at your fingertips is a game changer. I recently came across this incredibly comprehensive Linux Cheat Sheet created by LK CloudTech , and I had to share it. It covers everything from basic file management to advanced networking, system diagnostics, and process management. Definitely worth downloading and keeping on your desktop! What is your most frequently used Linux command? Mine is probably grep or tail -f. Let me know in the comments! #Linux #DevOps #SystemIntegration #Tech #SoftwareEngineering #CloudComputing
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development