File Permissions in Linux (Owner, Group, Others)

In Linux/Unix, each file and directory has permissions assigned to three types of users:

1. Owner (User)

2. Group

3. Others (World)


chmod Numeric Permissions

Each permission type (read, write, execute) is represented by a number:

Permission Value Symbol
Read 4 r
Write 2 w
Execute 1 x

Add them to get the total:

Example: chmod 754 file.txt

User Type Value Meaning
Owner 7 rwx
Group 5 r-x
Others 4 r--

Common chmod Values

Command Meaning
chmod 777 Everyone can read/write/execute
chmod 755 Owner: all, Group/Others: read + execute
chmod 644 Owner: read + write, Group/Others: read only
chmod 600 Only owner can read/write
chmod 666 All can read/write, no execute

Note: Be careful with chmod 777 – it gives full control to everyone, which can pose a security risk. Use it only when absolutely necessary.

A.M. Rinas

Written by A.M. Rinas

Full-Stack Software Engineer working on web applications, DevOps automation, and databases. More about me on the about page, or say hi through the contact page and LinkedIn.

← Back to all articles