cancel
Showing results for 
Search instead for 
Did you mean: 
Becklin
Cadet
Cadet
  • 1,563 Views

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?

 

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
WinterLightning
Mission Specialist
Mission Specialist
  • 1,541 Views

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
$
==========

View solution in original post

0 Kudos
2 Replies
WinterLightning
Mission Specialist
Mission Specialist
  • 1,542 Views

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
$
==========

0 Kudos
Tracy_Baker
Starfighter Starfighter
Starfighter
  • 1,520 Views

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

Program Lead at Arizona's first Red Hat Academy, est. 2005
Estrella Mountain Community College
0 Kudos
Join the discussion
You must log in to join this conversation.