-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
6.16.z
-
1
-
False
-
-
False
-
foreman-3.13.0-0.1.develop.20241022125850git17f6c03
-
0
-
-
-
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