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
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.
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.
4
Q
what command do you run for finding the current unmask settings?
A
unmask