Chmod權限計算機
開發者工具透過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
八進制換算原理
- 1r=4、w=2、x=1,每位數字=啟用位之和。rwx=7、r-x=5、r--=4。
- 2For 755: owner=7(rwx), group=5(r-x), others=5(r-x).
- 3Command: chmod 755 file or chmod u=rwx g=r-x o=r-x file
常用預設(點擊填充)
| 644 | Regular file: owner rw, others r |
| 755 | Executable/dir: owner rwx, others rx |
| 600 | Private: owner only (e.g. keys) |
| 700 | Private dir: owner only |
| 666 | World rw (dangerous) |
| 777 | World rwx (never in production) |
| 400 | Read-only: protect from edits |
| 640 | Owner rw + group r |
安全原則:伺服器上絕不用 777。網頁檔案 644、目錄 755、SSH 私鑰 600、.ssh 目錄 700。特殊位元(setuid/setgid/sticky)構成第 4 位:4755、2755、1777(/tmp)。
這個工具對你有幫助嗎?
怎麼用
- Paste or type content: drop code/text into the Chmod Calculator or fill the parameters.
- Choose mode/options: switch format, rules or processing as needed.
- Live output: results appear instantly — nothing is submitted, data stays in your browser.
- 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.
相關工具
相關指南
來源與更新
Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07
最近更新:
本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。
內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.
引用本頁: YiJianSuan. Chmod權限計算機[EB/OL]. https://www.yijiansuan.com/zh-TW/c/dev/chmod
本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。