1

My current umask value is 0002

$ umask 0002 $ 

I want to permanently change it to 0022

How can I do so?

1 Answer 1

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 
1
  • 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. Commented Jan 23, 2019 at 17:36

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.