propellor spin
This commit is contained in:
parent
1c65b86f83
commit
dbdd18e0e1
|
@ -21,7 +21,7 @@ enabledFor user = Property desc go `requires` Apt.installed ["sudo"]
|
||||||
desc = user ++ " is sudoer"
|
desc = user ++ " is sudoer"
|
||||||
sudobaseline = user ++ " ALL=(ALL:ALL)"
|
sudobaseline = user ++ " ALL=(ALL:ALL)"
|
||||||
sudoline True = sudobaseline ++ " NOPASSWD:ALL"
|
sudoline True = sudobaseline ++ " NOPASSWD:ALL"
|
||||||
sudoline False = sudobaseline
|
sudoline False = sudobaseline ++ " ALL"
|
||||||
wanted locked l
|
wanted locked l
|
||||||
| not (sudobaseline `isPrefixOf` l) = True
|
| not (sudobaseline `isPrefixOf` l) = True
|
||||||
| "NOPASSWD" `isInfixOf` l = locked
|
| "NOPASSWD" `isInfixOf` l = locked
|
||||||
|
|
Loading…
Reference in New Issue