Hi,
I am trying to change the umask from default to 027. What are the concequences or how will it affect existing processes, files permissions and the envirinment?
Hi,
It will affect only newly created files/processes. The existing files/processes are not changed.
==========
$ umask
022
$ touch foo
$ ls -l foo
-rw-r--r-- 1 guest guest 0 11 10 12:36 foo
$ umask 011
$ umask
011
$ touch bar
$ ls -l foo bar
-rw-rw-rw- 1 guest guest 0 11 10 12:37 bar
-rw-r--r-- 1 guest guest 0 11 10 12:36 foo
$
==========
Hi,
It will affect only newly created files/processes. The existing files/processes are not changed.
==========
$ umask
022
$ touch foo
$ ls -l foo
-rw-r--r-- 1 guest guest 0 11 10 12:36 foo
$ umask 011
$ umask
011
$ touch bar
$ ls -l foo bar
-rw-rw-rw- 1 guest guest 0 11 10 12:37 bar
-rw-r--r-- 1 guest guest 0 11 10 12:36 foo
$
==========
Read my reply in this thread -- I'm guessing it will help you.
https://learn.redhat.com/t5/Platform-Linux/UMask-symbolic-notation/m-p/20697#M1175
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.