sudo-rs icon indicating copy to clipboard operation
sudo-rs copied to clipboard

Make `--validate` aware of NOPASSWD

Open squell opened this issue 2 years ago • 1 comments

Followup to #395: if a NOPASSWD rule applies to the user, original sudo doesn't ask for a password when running sudo -v. If we decide to copy this behaviour (requires some changes to the abstraction interface of sudoers) .

squell avatar Jun 12 '23 09:06 squell

Relevant test: https://github.com/memorysafety/sudo-rs/blob/f5ef04c62f3b4279a3f79f2d078aedcdf3b70fa5/test-framework/sudo-compliance-tests/src/nopasswd.rs#L96

In combination with PASSWD: https://github.com/memorysafety/sudo-rs/blob/f5ef04c62f3b4279a3f79f2d078aedcdf3b70fa5/test-framework/sudo-compliance-tests/src/nopasswd.rs#L111

BriocheBerlin avatar Jun 22 '23 15:06 BriocheBerlin