Free2Box
Chmod 權限計算器IT & 開發者工具Instant browser workflowFocused single-task utilityNo setup required

Chmod 權限計算器

計算 Unix 檔案權限的符號和數字表示法

八進制: 755符號表示: rwxr-xr-x7/9 bits enabled指令755Presets8
權限說明
Toggle read, write, and execute bits for owner, group, and others, or jump directly to an octal value.
讀取
(r)
寫入
(w)
執行
(x)
八進制
擁有者7
群組5
其他5

八進制

755

符號表示

rwxr-xr-x

指令

chmod 755 filename

常用預設
Use a common preset as a starting point, then fine-tune individual bits when the file or directory needs stricter access.

權限說明

rwxr-xr-x
擁有者群組其他
符號表示八進制權限說明
r4讀取
w2寫入
x1執行
rw-6讀取 + 寫入
r-x5讀取 + 執行
rwx7讀取 + 寫入 + 執行

繼續下一步

用相關的下一個動作延續你的工作流程。

八進制755符號表示rwxr-xr-xEnabled bits7/9結果成功
Privacy & Trust

Least privilege matters

Start from the minimum required access and add permissions only when the file or directory genuinely needs them.

Files and directories differ

A file often uses 644 while executable scripts or directories frequently need 755. The right default depends on how the path is used.

Client-side calculator

Permission calculations stay in the browser, which is helpful when reviewing internal deployment conventions or shell snippets locally.

Export command

Copy the octal value, symbolic string, or full `chmod` command, or download a plain-text summary.

Chmod 權限計算器 八進制: 755 符號表示: rwxr-xr-x 指令: chmod 755 filename Enabled bits: 7/9

使用方法

1

輸入數值

在輸入欄位中填入您的數字或參數。

2

即時取得結果

結果在您輸入時自動更新——無需按計算按鈕。

3

複製或儲存

將結果複製到剪貼簿或用於您的工作流程。

為什麼使用此工具

100% 免費

沒有隱藏費用,沒有付費等級——所有功能完全免費。

無需安裝

完全在瀏覽器中運行。無需下載或安裝任何軟體。

隱私且安全

您的資料永遠不會離開您的裝置。不會上傳至任何伺服器。

支援行動裝置

完全響應式設計——在手機、平板或桌面電腦上均可使用。

開發者工具指南

Unix 檔案權限完全指南:Chmod 數字與符號表示法

重點摘要

  • 三組權限:擁有者(Owner)、群組(Group)、其他人(Others),各有讀(r=4)、寫(w=2)、執行(x=1)
  • 755 = 擁有者全部權限,群組和其他人只能讀取和執行
  • 設定錯誤的權限是 Linux 安全漏洞的常見來源

Unix/Linux 的檔案權限系統是系統安全的基石。每個檔案和目錄都有三組權限,控制誰能讀取、修改或執行。Chmod 計算器能在數字(755)和符號(rwxr-xr-x)之間轉換,幫助系統管理員和開發者正確設定權限。

755

最常見的目錄權限設定

常見用途

1

Web 伺服器設定

網站目錄通常設 755(可讀可執行),檔案設 644(可讀不可執行)。設定檔可能需要 600(只有擁有者可讀寫)。

2

Shell 腳本權限

新建的 Shell 腳本需要加上執行權限(chmod +x 或 755)才能直接執行。忘記設定是新手常見問題。

3

SSH 金鑰保護

SSH 私鑰(~/.ssh/id_rsa)必須設為 600。權限過於寬鬆時 SSH 會拒絕使用該金鑰。

4

Docker 容器部署

Docker 映像中的檔案權限可能在建置過程中改變。Dockerfile 中需要明確設定權限確保安全。

實用技巧

777(所有人都有所有權限)幾乎永遠是錯誤的設定——只有在臨時測試時使用,用完立即改回。

目錄需要執行(x)權限才能進入。沒有執行權限的目錄無法 cd 進入或列出內容。

setuid(4xxx)和 setgid(2xxx)是特殊權限,允許以擁有者/群組的身份執行——使用時需特別小心。

umask 決定新建檔案的預設權限。umask 022 = 新檔案預設 644、新目錄預設 755。

本工具所有運算皆在您的瀏覽器本地完成,不會上傳任何資料至伺服器。內容僅供參考,請依實際需求進行驗證。

常見問題