sudo-toggle
Synopsis
Section titled “Synopsis”sudo-toggleDescription
Section titled “Description”Toggles the sudo NOPASSWD rule on and off via /etc/sudoers.d/nofail-toggle. Useful for automated tasks that would otherwise require a password entry. Clears the sudo credential cache when re-enabling, so the lockdown takes effect immediately.
Exit Status
Section titled “Exit Status”0 |
Rule toggled |
Example
Section titled “Example”sudo-toggle