Skip to main content

sudoers_defaults_line

Function sudoers_defaults_line 

Source
pub fn sudoers_defaults_line(choice: SudoTimestampChoice) -> String
Expand description

What: Build a single-line Defaults entry for a global timestamp_timeout.

Inputs:

  • choice: Selected cache duration.

Output:

  • One or two lines: marker comment plus Defaults timestamp_timeout=….

Details:

  • Intended for /etc/sudoers.d/*; validate with visudo -cf before installing.