JustUtils
shield_lockLinux permissions · explained as you click

Chmod, without the guesswork.

Choose who can read, change, or use an item. We translate every click into the three digits, explain the result, and build the command for you.

STEP 1

What are you changing?

Execute means different things for a file and a directory.

For a directory: Read lists names, Write adds or removes items, and Execute lets someone enter the directory and reach items inside.

STEP 2

Choose access

Owner permissions

Owner

digit 1 · 7

rwx

Usually you or the account that created it.

Group permissions

Group

digit 2 · 5

r-x

Accounts collected in the file's owning group.

Everyone else permissions

Everyone else

digit 3 · 5

r-x

Any other account on the same system.

YOUR RESULT

755rwxr-xr-x

u=rwx,g=rx,o=rx

Owner

Can list names, add or remove items, enter

Group

Can list names, enter

Everyone else

Can list names, enter

THE PART MOST CALCULATORS SKIP

See what will actually change

Find the numeric mode with stat -c '%a' path on Linux, then review each permission being added or removed.

644arrow_forward755
addOwner: executeaddGroup: executeaddEveryone else: execute

TOP 5 EVERYDAY MODES

Start from the job, not the digits

Each common mode has its own explainer page and loads directly into this calculator. Pick the situation that sounds like yours, then check the access before copying.

CHMOD IN ONE MINUTE

What is chmod?

Every Linux file carries a tiny access list. chmod is the command that rewrites that list. It does not move the file, change its contents, or choose its owner—it only changes what the owner, group, and everyone else are allowed to do.

Think of the three digits as three keycards. The first card belongs to the owner, the second to the group, and the third to everyone else. Each card gets points for Read (4), Write (2), and Execute (1). Add the allowed actions to get that card's digit.

The only math you need

4Read+2Write+1Execute=7all three
Why 777 is not a universal fix: it hands every keycard every permission. Fix ownership or choose the smallest access that solves the real need instead.

DIGIT 1 · u

Owner

Usually you or the account that created it.

DIGIT 2 · g

Group

Accounts collected in the file's owning group.

DIGIT 3 · o

Everyone else

Any other account on the same system.

Before changing a directory tree, read the file-versus-directory chmod guide and verify traversal, group ownership, and recursive-command risks.

คู่มือ CHMOD CALCULATOR ภาษาไทย

คำนวณสิทธิ์ chmod 755, 644 และโหมดที่ใช้บ่อยอย่างเข้าใจความหมาย

chmod เปลี่ยนสิทธิ์การอ่าน เขียน และเรียกใช้ไฟล์หรือไดเรกทอรีบน Linux ตัวเลขสามหลักแทนสิทธิ์ของเจ้าของ กลุ่ม และผู้ใช้อื่นตามลำดับ เครื่องคำนวณช่วยสร้างโหมดและคำสั่ง แต่คุณควรตรวจชนิดไฟล์ เจ้าของ และงานที่ต้องการก่อนนำคำสั่งไปใช้

ตัวเลข chmod คำนวณอย่างไร

4

อ่าน (read)

เปิดดูเนื้อหาไฟล์ หรือดูรายชื่อภายในไดเรกทอรี

2

เขียน (write)

แก้ไขไฟล์ หรือเพิ่มและลบรายการในไดเรกทอรีเมื่อมีสิทธิ์ที่เกี่ยวข้อง

1

เรียกใช้ (execute)

รันโปรแกรม หรือเดินผ่านไดเรกทอรีเพื่อเข้าถึงรายการด้านใน

รวมค่าของสิทธิ์ที่ต้องการ เช่น 4 + 2 = 6 หมายถึงอ่านและเขียน ส่วน 4 + 2 + 1 = 7 หมายถึงอ่าน เขียน และเรียกใช้ จากนั้นวางผลสามหลักตามลำดับ owner, group และ others

ตาราง chmod ที่ใช้บ่อย

โหมดสัญลักษณ์ตัวอย่างการใช้งาน
755rwxr-xr-xไดเรกทอรีหรือโปรแกรมที่เจ้าของแก้ไขได้ และผู้อื่นอ่านหรือเรียกใช้ได้
644rw-r--r--ไฟล์ทั่วไปที่เจ้าของแก้ไขได้ และผู้อื่นอ่านได้
600rw-------ไฟล์ส่วนตัวที่มีเฉพาะเจ้าของอ่านและแก้ไขได้
700rwx------ไดเรกทอรีหรือสคริปต์ส่วนตัวของเจ้าของ

อย่าใช้ chmod 777 เป็นวิธีแก้ปัญหาเริ่มต้น: โหมดนี้ให้ทุกคนอ่าน เขียน และเรียกใช้ได้ ควรตรวจ ownership, group และสิทธิ์ขั้นต่ำที่งานต้องใช้ก่อน

สิทธิ์ไฟล์กับไดเรกทอรีไม่เหมือนกัน

execute บนไฟล์หมายถึงอนุญาตให้เรียกใช้ไฟล์ แต่ execute บนไดเรกทอรีหมายถึงอนุญาตให้เดินผ่าน path เพื่อเข้าถึงรายการด้านใน ดังนั้นการเลือก 644 ให้ไดเรกทอรีอาจทำให้เห็นรายชื่อแต่เปิดไฟล์ด้านในไม่ได้

รายการตรวจสอบก่อนรันคำสั่ง

  • ตรวจ path และหลีกเลี่ยง wildcard ที่กว้างเกินไป
  • ใช้ ls -l เพื่อตรวจสิทธิ์และเจ้าของปัจจุบัน
  • พิจารณาว่าต้องใช้ chown หรือปรับ group แทนหรือไม่
  • ทดสอบกับไฟล์ตัวอย่างก่อนใช้ -R แบบ recursive