惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
H
Help Net Security
Jina AI
Jina AI
V
V2EX
G
Google Developers Blog
B
Blog
GbyAI
GbyAI
U
Unit 42
爱范儿
爱范儿
腾讯CDC
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
小众软件
小众软件
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
博客园 - 聂微东
The Cloudflare Blog
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Cloud Engineer Journey #3 - Understanding Linux File Perm...
Joyal B Biju · 2026-05-13 · via DEV Community

One of the most important concepts in Linux is file permissions.

At first, permissions may look confusing because of symbols like:

bash
-rwxr-xr--

But once you understand the basics, it becomes much easier.

And if you are learning Cloud or DevOps, understanding Linux permissions is extremely important because permissions help control:

  • who can access files,
  • who can modify them,
  • and who can execute programs.

Without proper permissions:

  • applications may fail,
  • scripts may not run,
  • services may stop working,
  • or systems may become insecure.

So in this post, let’s understand Linux permissions in a simple beginner-friendly way.


🐧 What Are Linux File Permissions?

Linux uses permissions to decide:

  • who can read a file,
  • who can edit a file,
  • and who can execute a file.

Think of permissions like access control in real life.

For example:

  • A house owner has full access
  • Family members may have limited access
  • Guests may only view certain things

Linux works in a very similar way.


🔐 Understanding Permission Symbols

Example:

-rwxr-xr--

Enter fullscreen mode Exit fullscreen mode

This line may look complicated, but it simply describes permissions.


📁 First Character

-

Enter fullscreen mode Exit fullscreen mode

or

d

Enter fullscreen mode Exit fullscreen mode

This tells us the file type.

  • - → normal file
  • d → directory (folder)

👤 Permission Groups

Linux permissions are divided into 3 groups:

Group Meaning
User File owner
Group Users in the same group
Others Everyone else

Example:

rwx r-x r--

Enter fullscreen mode Exit fullscreen mode

This is divided into:

  • User → rwx
  • Group → r-x
  • Others → r--

✨ What Do r, w, x Mean?

Symbol Meaning
r Read
w Write
x Execute

💡 Simple Explanation

Example:

rwx

Enter fullscreen mode Exit fullscreen mode

Means:

  • read ✅
  • write ✅
  • execute ✅

Another example:

r--

Enter fullscreen mode Exit fullscreen mode

Means:

  • read ✅
  • write ❌
  • execute ❌

🔢 Numeric Permissions

Linux also uses numbers for permissions.

Number Permission
7 rwx
6 rw-
5 r-x
4 r--

⚙️ chmod Command

The chmod command is used to change permissions.

Example:

chmod 755 script.sh

Enter fullscreen mode Exit fullscreen mode

This means:

  • User → full access (7)
  • Group → read & execute (5)
  • Others → read & execute (5)

🚀 Why Execute Permission Matters

Sometimes a script will not run because it does not have execute permission.

Example:

./deploy.sh

Enter fullscreen mode Exit fullscreen mode

You may see:

Permission denied

Enter fullscreen mode Exit fullscreen mode

Fix:

chmod +x deploy.sh

Enter fullscreen mode Exit fullscreen mode

Now the script becomes executable.

This is very common in Linux, AWS servers, and DevOps workflows.


👥 chown Command

The chown command changes file ownership.

Example:

sudo chown ec2-user:ec2-user file.txt

Enter fullscreen mode Exit fullscreen mode

This changes:

  • owner
  • and group ownership

Very useful while working with:

  • AWS EC2
  • Jenkins
  • Docker volumes
  • shared directories

☁️ Why Permissions Matter in Cloud & DevOps

Permissions are heavily used in:

  • Linux servers
  • AWS EC2 instances
  • Docker containers
  • Kubernetes
  • CI/CD pipelines

Incorrect permissions can:

  • break deployments,
  • stop applications,
  • or create security risks.

That’s why understanding permissions is one of the most important Linux skills.


🛠️ Mini Challenge

Try this on your Linux system or EC2 instance:

Task:

  1. Create a file called deploy.sh
  2. Add some text inside it
  3. Try running the file
  4. Notice the permission error
  5. Fix it using chmod
  6. Run the file again

👉 In the next post, I’ll explain the solution step by step.


🎯 Final Thoughts

Linux permissions may look difficult in the beginning, but they become much easier once you start practicing with real files and commands.

The goal is not to memorize symbols.

The goal is to understand:

  • who can access files,
  • what actions are allowed,
  • and how Linux protects systems using permissions.

Small concepts like these build the foundation for Cloud and DevOps engineering ☁️


If you are learning Linux, AWS, or Cloud basics and need help with even small doubts, feel free to connect with me through LinkedIn or email — always happy to learn and grow together 🚀

CloudEngineerJourney #Linux #AWS #DevOps #LinuxPermissions #BeginnerFriendly