Ann, a user, has created a new directory and noticed that permissions on the new directory are as follows: drwx------
1 ann ann 0 Jun 11 08:20 work Which of the following should the administrator do to restore default permissions for newly created directories?
Click on the arrows to vote for the correct answer
A. B. C. D.A.
https://geek-university.com/linux/set-the-default-permissions-for-newly-created-files/The correct answer is A. Change umask value in /etc/profile.
Explanation: When a new directory is created in Linux, the default permissions are determined by the umask value. The umask value is a mask that is used to subtract permissions from newly created files and directories. It is set by default in the /etc/profile file.
The permissions on the new directory created by Ann are: drwx------. This means that Ann has full read, write, and execute permissions on the directory, but no one else has any permissions.
To restore default permissions for newly created directories, the administrator should change the umask value in the /etc/profile file. The umask value should be set to 022, which will allow group and other users to have read and execute permissions on newly created directories, but not write permissions.
Option B, running chmod command to update permissions, is not the correct answer because this would only change the permissions on the existing directory, not the default permissions for newly created directories.
Option C, modifying directory ownership to ann:ann with chown, is not the correct answer because this would only change the ownership of the existing directory, not the default permissions for newly created directories.
Option D, executing chattr command to restore default access, is not the correct answer because chattr command is used to modify file attributes, not permissions.