Product SiteDocumentation Site

A.5.5. rootpw (required) - Set Root Password

Sets the system's root password to the password argument.
rootpw [--iscrypted|--plaintext] [--lock] password
--iscrypted
If this option is present, the password argument is assumed to already be encrypted. This option is mutually exclusive with --plaintext. To create an encrypted password, you can use Python:
$ python -c 'import crypt; print(crypt.crypt("My Password", "$6$My Salt"))'
This will generate a SHA512 crypt of your password using your provided salt.
--plaintext
If this option is present, the password argument is assumed to be in plain text. This option is mutually exclusive with --iscrypted.
--lock
If this option is present, the root account is locked by default. This means that the root user will not be able to log in from the console.