Skip to main content

check_passwordless_sudo_available

Function check_passwordless_sudo_available 

Source
pub fn check_passwordless_sudo_available() -> Result<bool, String>
Expand description

What: Check if passwordless privilege escalation is available for the current user.

Inputs:

  • None (uses the active privilege tool from settings).

Output:

  • Ok(true) if passwordless execution is available, Ok(false) if not, or Err(String) on error.

ยงErrors

  • Returns Err if the check cannot be executed (e.g., tool not installed).

Details: