C. umask
Explanation:
umask is a command in Linux that sets the default file permissions for newly created files and directories.
The default permissions are calculated by subtracting the umask value from 777 for files and 666 for directories. The result is the default permission for each bit (r, w, and x).
For example, a umask value of 022 would result in file permissions of 644 (666 - 022) and directory permissions of 755 (777 - 022).
Option A (setenforce) is used to set the enforcement mode of SELinux, the security module in Linux. It is not used to configure the default permissions for new files.
Option B (sudo) is used to run commands with administrative privileges. It is not used to configure the default permissions for new files.
Option D (chmod) is used to change the permissions of existing files and directories, but not to configure the default permissions for new files.
C is correct
The user mask (umask) feature defines the default permissions Linux assigns to the file or directory. The user mask is an octal value that represents the bits to be removed from the octal mode 666 permissions for files or the octal mode 777 permissions for directories.
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linux_admin
1 year, 3 months agoDamon54
8 months, 3 weeks agoCkl22
1 year, 4 months ago