Using the `host-registration generate-command` with `--setup-remote-execution` on Red Hat Satellite 6.x drops the sudoers file with incorrect permissions

Solution Verified - Updated -

Issue

  • Registering a Content Host enabling --setup-remote-execution on the generate registration command deploys invalid sudoers file permissions. Hence rexuserwon't have sudo rights.

    • Example generation command

      # hammer host-registration generate-command --activation-key 'RHEL8' --setup-remote-execution true
      
    • After execute the registration command. File permissions are invalid on the Content Host:

      # ls -l /etc/sudoers.d/rexuser                                       
      rw-rr-. 1 root root 65 Sep 30 17:45 rexuser
      

Environment

  • Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content