Setting umask

You are advised to set umask of the host (including the host machine) and container to 0027 or a larger value to improve security.

For example, to set umask to 0077, perform the following operations:

  1. Log in to the server as the root user and edit the /etc/profile file.
    1
    vim /etc/profile
    
  2. Add umask 0077 to the end of the /etc/profile file, save the file, and exit.
  3. Make the configuration take effect.
    1
    source /etc/profile