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