2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Add "listpw" and "verifypw" options.

This commit is contained in:
Todd C. Miller
2000-01-17 04:05:18 +00:00
parent a597c4ad55
commit f68cc2f628
5 changed files with 104 additions and 17 deletions

4
sudo.c
View File

@@ -237,7 +237,7 @@ main(argc, argv)
break;
case MODE_VALIDATE:
user_cmnd = "validate";
sudoers_flags = PWCHECK_ALL | PWCHECK_RUNAS;
sudoers_flags = def_ival(I_VERIFYPW);
break;
case MODE_KILL:
case MODE_INVALIDATE:
@@ -251,7 +251,7 @@ main(argc, argv)
case MODE_LIST:
user_cmnd = "list";
printmatches = 1;
sudoers_flags = PWCHECK_ANY;
sudoers_flags = def_ival(I_LISTPW);
break;
}