Using the `host-registration generate-command` with `--setup-remote-execution` on Red Hat Satellite 6.x drops the sudoers file with incorrect permissions
Issue
-
Registering a Content Host enabling
--setup-remote-execution
on the generate registration command deploys invalid sudoers file permissions. Hencerexuser
won'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.