Question: While reading about file system permissions in Linux, you discover that the default permissions assigned to new files when they are created are r w
While reading about file system permissions in Linux, you discover that the default permissions assigned to new files when they are created are octal and new directories are octal
However, when you create a new file in a directory calleddata the permissions assigned are
Which of the following BEST explains the results you are seeing?
There are more restrictive permissions assigned to the data directory, and any new files created inside that directory will inherit the more restrictive permissions
You are logged in as the root user, and all files created by the root user are assigned these permissions. Only normal users get octal permissions on newly created files
The umask must be set to and, therefore, block the write permission for the group owner and everyone else
Because you are logged in as a normal user and not the root user, all files that you create will be created with a more restrictive set of permissions.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
