Setting umask
You are advised to set the umask of the server to a value ranging from 027 to 777 to limit the file permission.
For example, to set umask to 027, perform the following operations:
- Log in to the server as the root user and edit the /etc/profile file.
vim /etc/profile
- Add umask 027 to the end of the /etc/profile file, save the file, and exit.
- Make the configuration take effect.
source /etc/profile
Parent topic: OS Security Hardening