An administrator is attempting to run a graphical network-configuration utility with elevated privileges on a desktop Linux system that uses PolicyKit. The administrator must ensure that PolicyKit rules are enforced and that any password prompt appears in a graphical dialog. Which command should be used to start the tool?
The correct command is pkexec network-configuration-tool. The pkexec wrapper hands the request to PolicyKit, which evaluates the defined policies and, if necessary, invokes the desktop's polkit authentication agent to display a GUI password dialog. Running sudo network-configuration-tool would bypass PolicyKit and only present a terminal prompt. polkit network-configuration-tool is invalid because polkit is the privilege framework, not a launcher. pexec is an unrelated parallel-execution utility and provides no privilege-escalation or PolicyKit integration.
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.