umask Flashcards

(4 cards)

1
Q

what is unmask (not command)?

A

A special variable used to alter the permissions on all new files and directories by taking away select file and directory permissions.

AKA sets the defulats for newly made files

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

Q: What does the common umask value 022 mean for new files and directories?

A

A:

0: No permissions removed from the user (owner)

2: Write permission removed from the group

2: Write permission removed from others

This means new files/directories will not allow group or others to write by default.

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

Q: Does the umask command modify permissions of existing files and directories?

A

A: No, umask only applies to newly created files and directories. To change permissions of existing files or directories, use the chmod command.

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

what command do you run for finding the current unmask settings?

A

unmask

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