ข้ามไปยังเนื้อหาหลัก

ช่องทำเครื่องหมาย rwx เป็นสัญกรณ์ฐานแปดและสัญลักษณ์

ดูคำตอบอย่างรวดเร็ว

Chmod Calculator: rwx checkboxes to octal and symbolic notation. r = 4, w = 2, x = 1; sum per group → octal digit.

วิธีการป้อนข้อมูล:
755 ⇄ rwxr-xr-x
u=rwx,g=r-x,o=r-x
เจ้าของ urwx
กลุ่มผู้ใช้ gr-x
คนอื่น or-x
ฐานสอง111 101 101

หลักการแปลงฐานแปด

  1. 1r=4, w=2, x=1, แต่ละหลัก = ผลรวมของบิตที่เปิดใช้งาน rwx=7, r-x=5, r--=4
  2. 2For 755: owner=7(rwx), group=5(r-x), others=5(r-x).
  3. 3Command: chmod 755 file or chmod u=rwx g=r-x o=r-x file

ค่าที่ตั้งไว้ล่วงหน้าที่ใช้บ่อย (คลิกเพื่อเติม)

644Regular file: owner rw, others r
755Executable/dir: owner rwx, others rx
600Private: owner only (e.g. keys)
700Private dir: owner only
666World rw (dangerous)
777World rwx (never in production)
400Read-only: protect from edits
640Owner rw + group r
หลักการความปลอดภัย: อย่าใช้ 777 บนเซิร์ฟเวอร์โดยเด็ดขาด ไฟล์หน้าเว็บ 644, ไดเรกทอรี 755, คีย์ส่วนตัว SSH 600, ไดเรกทอรี .ssh 700 บิตพิเศษ (setuid/setgid/sticky) สร้างบิตที่ 4: 4755, 2755, 1777 (/tmp)

เครื่องมือนี้มีประโยชน์กับคุณไหม?

วิธีใช้งาน

  1. Paste or type content: drop code/text into the Chmod Calculator or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

ประเด็นสำคัญ

  • Chmod Calculator is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: rwx checkboxes to octal and symbolic notation.
  • Results come with formulas and reference tables so you can verify every number.

หลักการและสูตรการคำนวณ

Unix permissions

r = 4, w = 2, x = 1; sum per group → octal digit
Groups: owner | group | others
Common: 755 dirs/scripts, 644 files, 600 private keys, 700 private dirs; avoid 777

คำถามที่พบบ่อย

How do I use the Chmod Calculator?
Open the page and fill in the input fields — results update automatically. rwx checkboxes to octal and symbolic notation.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

เครื่องมือที่เกี่ยวข้อง

ดูเครื่องมือทั้งหมด 55 รายการในหมวดหมู่นี้ →

คู่มือที่เกี่ยวข้อง

แหล่งที่มาและการอัปเดต

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

อัปเดตล่าสุด:

สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ

เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.

อ้างอิงหน้านี้: YiJianSuan. เครื่องคำนวณ Chmod[EB/OL]. https://www.yijiansuan.com/th/c/dev/chmod

ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก