web-dev-qa-db-ja.com

ArchLinuxでデフォルトのumaskを設定する方法

ArchLinuxのデフォルトのumaskを設定するにはどうすればよいですか。 0022が必要ですが、システムのデフォルトは0027です。私はチェックした etc/profile/そしてそれは言う

umask 0022

しかし、どこかでumaskの別の値が設定され、それが見つかりません。 0027 umaskを設定できる場所、またはそれをオーバーライドできる場所についての提案はありますか?

1
MrLeeh

ついに、umask 027ファイルに~/.profileステートメントが見つかりました。コメントしてumask 022のコメントを外すと修正されました。

〜/ .profile

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
umask 022
# umask 027
0
MrLeeh