Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-21886

Python3 needed to set a Default Encrypted Root Password for Hosts

XMLWordPrintable

    • Sat_docs_2_2024
    • Moderate
    • No

      Document URL: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.14/html/provisioning_hosts/configuring_provisioning_resources_provisioning

      Section Number and Name:
      2.19. Setting a Default Encrypted Root Password for Hosts

      1. Procedure
      Generate an encrypted password:

      Describe the issue:
      Running on a RHEL 8.8 machine running the command
      ```

      1. python -c 'import crypt,getpass;pw=getpass.getpass(); print(crypt.crypt(pw)) if (pw==getpass.getpass("Confirm: ")) else exit()'
        ```
        Returns

      ```
      bash: python: command not found...

      ```

      Suggestions for improvement:
      Should be changed to

      ```
      python3 -c 'import crypt,getpass;pw=getpass.getpass(); print(crypt.crypt(pw)) if (pw==getpass.getpass("Confirm: ")) else exit()'
      ```

      Additional information:

            lena-sat Lena Ansorgová (Inactive)
            jira-bugzilla-migration RH Bugzilla Integration
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: