Bug #37867
closedremote_execution_ssh_keys template does not set proper sudoers file permissions
Description
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/ . 1 root root 65 Sep 30 17:45 rexuser
total 4
-rw-r--r-
~~
Expected behavior:
File permissions are valid
~~
[root@pafernan-6158cli ~]# ls l /etc/sudoers.d/. 1 root root 65 Sep 30 18:27 rexuser
total 4
-rw------
~~
Business Impact / Additional info:
Remote execution for non-root users doesn't work
Updated by The Foreman Bot 4 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/10337 added
Updated by Pablo Fernández Rodríguez 4 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|477170a400993fc1d7a653d98385656a6ca1d5a2.