LPIC-1 Exam 102 v5 (Linux Administrator) — Question 45
Given the following excerpt of the sudo configuration:
jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk
Which of the following statements are true? (Choose three.)
Answer options
- A. Jane can run /bin/id only after specifying her password.
- B. Jane can run /sbin/fdisk after specifying root's password.
- C. Jane can run /sbin/fdisk after specifying her password.
- D. Jane can run /bin/kill without specifying a password.
- E. Jane can run /bin/id without specifying her password.
Correct answer: C, D, E
Explanation
The correct answers are C, D, and E because the configuration specifies that jane can run /sbin/fdisk only with her password, while /bin/kill and /bin/id can be executed without a password. Options A and B are incorrect as they imply that she needs to enter a password for commands that she can actually run without one.