umask Flashcards

1
Q

umask

A

umask() sets the calling process’s file mode creation mask (umask) to mask & 0777 (i.e., only the file permission bits of mask are used), and returns the previous value of the mask.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

umask

  • p
  • S
A
  • p, If MODE is omitted, output in a form that may be reused as input.
  • S, Makes the output symbolic; otherwise an octal number is output.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

umask [PERMISSIONS]

777 = No permissions

000 = All permissions

666 umask = 111 chmod

555 = 222

444 = 333

333 =444

A

umask 027 = chmod 750

umask g-x

This will remove a permission.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly