ファイルモードビットとは何か?
ファイルモードビットとは、ファイルとともに格納されるフラグの集合で、そのアクセス権限と特殊な動作を定義します。所有者、グループ、その他に対する読み取り、書き込み、実行に加え、setuid、setgid、sticky bit を含みます。一般には 3 桁または 4 桁の 8 進数、あるいはシンボリックな文字列として表現されます。
なぜ重要か
実行ビットがないために起動に失敗する script は、CI におけるモードビットの典型的な問題です。これらのビットを正しく読み取り設定することは、可搬性があり動作する build script のために不可欠です。
関連ガイド
What Is a Umask Value?A umask value is a per-process mask that clears permission bits from newly created files and directories, set…
What Are Owner, Group, and Other Permissions?Owner, group, and other are the three permission classes Unix applies to each file, granting separate read, w…
What Is the Setuid Bit?The setuid bit makes an executable run with the privileges of its owner rather than the user launching it, of…