每当我在CentOS 5创build一个新用户时,他们的home文件夹会自动被赋予“755”的UGO设置,我怎样才能将默认值改为“700”?
另外,服务器在技术上是ClearOS,但是它是基于CentOS的。
您可以编辑文件/etc/login.defs并将umask值更改为:
UMASK 077
将/etc/login.defs的UMASK设置为077:
# # If useradd should create home directories for users by default # On RH systems, we do. This option is overridden with the -m flag on # useradd command line. # CREATE_HOME yes # The permission mask is initialized to this value. If not specified, # the permission mask will be initialized to 022. UMASK 077