propellor-2.8.0: property-based host configuration management in haskell

Safe HaskellNone
LanguageHaskell98

Propellor.Property.User

Synopsis

Documentation

data Eep Source

Constructors

YesReallyDeleteHome 

nuked :: User -> Eep -> Property NoInfo Source

Removes user home directory!! Use with caution.

hasSomePassword :: User -> 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 => User -> 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 :: User -> 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.

shadowConfig :: Bool -> Property NoInfo Source

Controls whether shadow passwords are enabled or not.

hasLoginShell :: User -> FilePath -> Property NoInfo Source

Ensures that a user has a specified login shell, and that the shell is enabled in etcshells.

shellEnabled :: FilePath -> Property NoInfo Source

Ensures that etcshells contains a shell.