An administrator is attempting to run a graphical network configuration tool with elevated privileges on a desktop Linux system that uses PolicyKit. The administrator needs to ensure that the proper policy rules are respected, and that any authorization prompts are presented graphically. Which command should the administrator use to execute the network configuration tool?
The correct answer is 'pkexec network-configuration-tool', as pkexec allows an authorized user to execute programs with the security privileges of another user (normally the superuser) by respecting policy definitions. Unlike sudo, pkexec will show a graphical authentication dialog if the session indicates it's graphical; sudo does not provide this and is traditionally used in a terminal. polkit is not a command; it's the toolkit to which pkexec belongs. The pexec command does not exist, and sudo will not provide a graphical dialog.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.