My current umask value is 0002

$ umask

I want to permanently change it to 0022

How can I do so?

1 Answer 1


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


You will get

  • 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, 2019 at 17:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .