Setting umask
You are advised to set umask of the host (including the host machine) and container to 027 or a larger value to improve security.
For example, to set umask to 077, perform the following operations:
- Log in to the server as the root user and edit the /etc/profile file.
vim /etc/profile
- Add umask 077 to the end of the /etc/profile file, save the file, and exit.
- Run the following command to make the configuration take effect:
source /etc/profile
Parent topic: Hardening OS Security