Set User Umask

How to set up umask for a Linux user.

# sets umask for all users
vi /etc/profile
# sets umask for a user
vi ~/.bashrc

Add the following umask line to the file.

umask 0022