Unixファイルパーミッションをチェックボックス、8進数(755など)、シンボリック表記(rwxr-xr-xなど)の間で変換します。
chmod計算の使い方
オーナー、グループ、その他の読み取り、書き込み、実行のチェックボックスをオンにしてください。
または755などの8進数値を入力してチェックボックスを自動設定してください。
実行可能なchmodコマンドをコピーしてください。
Unix file permissions control who can read, write and execute a file or directory, split across three groups: the owner, the group, and everyone else. This calculator converts between interactive checkboxes, the numeric octal form like 755, and the symbolic form like rwxr-xr-x, keeping all three in sync.
Each group gets three bits, read (4), write (2) and execute (1), and you add them up to get one digit. So 7 is read plus write plus execute (rwx), 5 is read plus execute (r-x), and 6 is read plus write (rw-). Three digits, one per group, give you the familiar permission number.
The common values are worth memorizing. 755 suits directories and executables: the owner has full access while group and others can read and execute but not write. 644 suits normal web files: the owner can read and write, everyone else can only read.
For sensitive files, 600 keeps things tight: only the owner can read or write, and nobody else has any access, which is what SSH private keys and similar secrets need.
There is also an optional fourth leading digit for special bits, setuid, setgid and the sticky bit, which change how programs run or how a shared directory behaves. When one is set, the execute position shows as s or t instead of x.
The calculator gives you the ready-to-run chmod command to copy, and runs entirely in your browser. It is a reference and converter, so it does not change any files itself.
よくある質問
755はオーナーにフルアクセス権限を与え、他の全員に読み取りと実行を許可します。ディレクトリやスクリプトに使用されます。644はオーナーに読み書きを、他の全員に読み取りのみを許可します。通常のファイルに使用されます。
777は全員に読み取り、書き込み、実行を許可します。サーバーではほぼ常に安全でありません。どのユーザーでもファイルを変更できるためです。代わりに755または644を優先してください。
実行ビットを追加してください。644から755(またはchmod +x)に変更すると、オーナー、グループ、その他の実行が有効になります。
8進数(755など)はパーミッションを数字としてエンコードします。シンボリック(rwxr-xr-xやu+x)は文字として記述します。このツールは両方を表示し、同期を保ちます。
4番目の先頭桁です。setuidとsetgidはプログラムをオーナーまたはグループとして実行し、ディレクトリのスティッキービットはユーザーが互いのファイルを削除できないようにします(/tmpなど)。
setuid、setgid、またはスティッキービットが設定されている場合、特殊ビットがアクティブであることを示すために実行位置がxではなくsまたはtとして表示されます。
このツールを埋め込む
このツールをご自身のウェブサイトに追加できます。下のコードをコピーしてください。内容は自動的に最新の状態に保たれます。
<iframe src="https://monu.tools/embed/ja/chmod-calculator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>関連ツール