ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 238 - XK0-005 discussion

Report
Export

A non-privileged user is attempting to use commands that require elevated account permissions, but the commands are not successful. Which of the following most likely needs to be updated?

A.
/etc/passwd
Answers
A.
/etc/passwd
B.
/etc/shadow
Answers
B.
/etc/shadow
C.
/etc/sudoers
Answers
C.
/etc/sudoers
D.
/etc/bashrc
Answers
D.
/etc/bashrc
Suggested answer: C

Explanation:

The /etc/sudoers file is used to configure the sudo command, which allows non-privileged users to execute commands that require elevated account permissions1. The file contains a list of users and groups that are allowed to use sudo, and the commands they can run with it. The file also defines the security policy for sudo, such as whether a password is required, how long the sudo session lasts, and what environment variables are preserved or reset.

The /etc/passwd file is used to store information about the user accounts on the system, such as their username, user ID, home directory, and login shell. The /etc/shadow file is used to store the encrypted passwords for the user accounts, along with other information such as password expiration and aging. These files are not directly related to the sudo command, and updating them will not grant a user elevated account permissions.

The /etc/bashrc file is used to set up the environment for the bash shell, such as aliases, functions, variables, and options. This file is executed whenever a new bash shell is started, and it affects all users on the system. However, this file does not control the sudo command or its configuration, and updating it will not allow a user to use commands that require elevated account permissions.

asked 02/10/2024
Lucie Loisel
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first