Anaconda UI specific commands
pwpolicy command is an Anaconda UI specific command that can be used only in the
%anaconda section of the kickstart file.
This command can be used to enforce a custom password policy, which specifies requirements for passwords created during installation, based on factors such as password length and strength.
pwpolicy name [--minlen=length] [--minquality=quality] [--strict|--nostrict] [--emptyok|--noempty] [--changesok|--nochanges]
Replace name with either
luksto enforce the policy for the
rootpassword, user passwords, or LUKS passphrase, respectively.
libpwqualitylibrary is used to check minimum password requirements (length and quality). You can use the
pwmakecommands provided by the libpwquality package to check the quality score of a password, or to create a random password with a given score. See the
pwmake(1)man page for details about these commands.
This command can only be used inside the
--minlen=- Sets the minimum allowed password length, in characters. The default is
--minquality=- Sets the minimum allowed password quality as defined by the
libpwqualitylibrary. The default value is
--strict- Enables strict password enforcement. Passwords which do not meet the requirements specified in
--minlen=will not be accepted. This option is disabled by default.
--notstrict- Passwords which do not meet the minimum quality requirements specified by the
-minlen=options will be allowed, after
Doneis clicked twice.
--emptyok- Allows the use of empty passwords. Enabled by default for user passwords.
--notempty- Disallows the use of empty passwords. Enabled by default for the root password and the LUKS passphrase.
--changesok- Allows changing the password in the user interface, even if the Kickstart file already specifies a password. Disabled by default.
--nochanges- Disallows changing passwords which are already set in the Kickstart file. Enabled by default.