设置umask 建议用户将主机(包括宿主机)和容器中的umask设置为0027及其以上,提高安全性。 以设置umask为0077为例,具体操作如下所示。 以root用户登录服务器,编辑“/etc/profile”文件。1vim /etc/profile 在“/etc/profile”文件末尾加上umask 0077,保存并退出。执行如下命令使配置生效。1source /etc/profile 父主题: Host加固