My current umask value is 0002
$ umask
0002
$
I want to permanently change it to 0022
How can I do so?
Go to terminal
Ctrl + Alt + T
In terminal type
sudo gedit ~/.bashrc
Search for umask
If present change the current value to umask 022
Save and exit
If not present, add the following line to end of document
umask 022
Save and exit
Now logout and login
Reopen terminal and type
umask
You will get
0022
umask
setting. Was having trouble editing photos that kept defaulting to600
but I wanted644
. – Sun Jan 23 '19 at 17:36