cmmaskとumaskの違いは何ですか?

cmmaskとumaskの違いは何ですか?

umaskで見つけることができる設定/etc/profilecmaskで見つけることができる設定の違いは何ですか/etc/default/init

2つの違いは何ですか?一方が他のものよりもいつ効力を発揮するのでしょうか。

ベストアンサー1

マンページではinit内容を説明し、/etc/default/init次のように言います。

 CMASK      The mask (see umask(1)) that init uses and that every
            process inherits from the init process.  If not set,
            init uses the mask it inherits from the kernel.  Note that
            init always attempts to apply a umask of 022 before creating
            a file, regardless of the setting of CMASK

initコアサービスコンポーネントとプロセスを開始または再起動するため、CMASKはこれらのコンポーネントに影響を与え、init特に新しいディレクトリを作成するデーモンはこのCMASK値をumask

umask/etc/profile独自のドットファイルで上書きされない限り、ログインしたユーザーに設定が適用されます。

おすすめ記事