You are an administrator and receive a report that a user is not able to execute certain commands with sudo. Where would you primarily look to diagnose the issue?
- /etc/sudoers file
- /etc/passwd file
- /var/log/auth.log
- /bin/sudo binary
To diagnose the issue of a user not being able to execute certain commands with sudo, you would primarily look at the /etc/sudoers file. This file contains the configuration for sudo privileges, and it's the first place to check for any restrictions or misconfigurations that might be affecting the user's access.
Loading...
Related Quiz
- What is the primary purpose of the echo command in Bash scripting?
- The ________ command in Linux displays information about the group membership of a user.
- You've been tasked with writing a script that processes input arguments. How would you check if the number of arguments provided to the script is less than 3?
- If a script is called with ./myscript.sh arg1 arg2 arg3, what does $2 represent?
- What is the primary purpose of the df command in Linux?