Verify root password hash and complexity

Verify that the root password meets your organization's corporate password complexity requirements.
  1. Log in as
    root
    , and run the
    # more /etc/shadow
    command.
    The hash information is displayed.
  2. If the root password does not contain a
    sha512
    hash, run the
    passwd
    command to set a new password.