Project

General

Profile

Actions

Bug #37867

closed

remote_execution_ssh_keys template does not set proper sudoers file permissions

Added by Pablo Fernández Rodríguez 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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/                                       
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
-rw------
. 1 root root 65 Sep 30 18:27 rexuser
~~

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

Actions #1

Updated by Adam Ruzicka 4 months ago

  • Category set to Templates
Actions #2

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
Actions #3

Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 3.13.0 added
Actions #4

Updated by Pablo Fernández Rodríguez 4 months ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF