Which two statements are true about administering the use of the Sudo command in Oracle Linux?

Which two statements are true about administering the use of the Sudo command in Oracle
Linux?

Which two statements are true about administering the use of the Sudo command in Oracle
Linux?

A.
Multiple administrators may edit the /etc/sudoers file simultaneously using vi but only one
may save the edited result.

B.
Multiple administrators may edit the /etc/sudoers file simultaneously using visudo but only
one may save the edited result.

C.
visudo will never save the /etc/sudoers file if there are syntax errors in the file after
editing.

D.
visudo prompts for an action if there are syntax errors in the /etc/sudoers file after editing.

E.
Using vi to edit /etc/sudoers opens the file read only.

Explanation:



Leave a Reply 2

Your email address will not be published. Required fields are marked *


brlawes

brlawes

D & E

Examples:
D. See below. visudo prompt when syntax errors are found, but will still allow you to save.

visudo: >>> /etc/sudoers: syntax error near line 112 <<<
What now?
Options are:
(e)dit sudoers file again
e(x)it without saving changes to sudoers file
(Q)uit and save changes to sudoers file (DANGER!)

E. See below when opening /etc/sudoers in vi
"/etc/sudoers" [readonly] 111L, 3728C

References:
https://docs.oracle.com/cd/E37670_01/E36387/html/ol_clcuaap_sec.html
https://www.sudo.ws/sudo/man/1.7.10/visudo.man.html

Abdullah Harb

Abdullah Harb

D&E