1

My current umask value is 0002

$ umask
0002
$

I want to permanently change it to 0022

How can I do so?

3

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
  • Thanks, I've been searching for half hour and finally out this solution for my own umask setting. Was having trouble editing photos that kept defaulting to 600 but I wanted 644. – Sun Jan 23 at 17:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.