Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Eep = YesReallyDeleteHome
- accountFor :: UserName -> Property NoInfo
- nuked :: UserName -> Eep -> Property NoInfo
- hasSomePassword :: UserName -> Property HasInfo
- hasSomePassword' :: IsContext c => UserName -> c -> Property HasInfo
- hasPassword :: UserName -> Property HasInfo
- hasPassword' :: IsContext c => UserName -> c -> Property HasInfo
- setPassword :: (((PrivDataField, PrivData) -> Propellor Result) -> Propellor Result) -> Propellor Result
- lockedPassword :: UserName -> Property NoInfo
- data PasswordStatus
- getPasswordStatus :: UserName -> IO PasswordStatus
- isLockedPassword :: UserName -> IO Bool
- homedir :: UserName -> IO FilePath
- hasGroup :: UserName -> GroupName -> Property NoInfo
- shadowConfig :: Bool -> Property NoInfo
- shadowExists :: IO Bool
Documentation
accountFor :: UserName -> Property NoInfo Source
hasSomePassword :: UserName -> Property HasInfo Source
Only ensures that the user has some password set. It may or may not be a password from the PrivData.
hasSomePassword' :: IsContext c => UserName -> c -> Property HasInfo Source
While hasSomePassword uses the name of the host as context, this allows specifying a different context. This is useful when you want to use the same password on multiple hosts, for example.
hasPassword :: UserName -> Property HasInfo Source
Ensures that a user's password is set to a password from the PrivData. (Will change any existing password.)
A user's password can be stored in the PrivData in either of two forms; the full cleartext Password or a CryptPassword hash. The latter is obviously more secure.
setPassword :: (((PrivDataField, PrivData) -> Propellor Result) -> Propellor Result) -> Propellor Result Source
isLockedPassword :: UserName -> IO Bool Source
shadowConfig :: Bool -> Property NoInfo Source
Controls whether shadow passwords are enabled or not.
shadowExists :: IO Bool Source