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

remote_execution_ssh_keys template does not set proper sudoers file permissions

XMLWordPrintable

    • To Do
    • None

      Description of problem:
      Provision template doesn't assign right file permissions to /etc/sudoers.d/rexuser for non-root users making it unusable. 

      How reproducible:
      Always

      Is this issue a regression from an earlier version:
      No

      Steps to Reproduce:
      1. Generate the curl registration command using `--setup-remote-execution true`
      2. Register the Content Host using provided curl command

      Actual behavior:
      File permissions are invalid:
      ~~~
      [root@pafernan-6158cli ~]# ls -l /etc/sudoers.d/                                       
      total 4                                                                               
      rw-r-r-. 1 root root 65 Sep 30 17:45 rexuser
      ~~~

      Expected behavior:
      File permissions are valid
      ~~~
      [root@pafernan-6158cli ~]# ls -l /etc/sudoers.d/
      total 4
      r-r----. 1 root root 65 Sep 30 18:27 rexuser
      ~~~

      Business Impact / Additional info:
      Remote execution for non-root users doesn't work

              Unassigned Unassigned
              rhn-support-pafernan Pablo Fernandez Rodriguez
              Peter Ondrejka Peter Ondrejka
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: