Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1677180 - [RFE] Provide the ability to use su as the effective method with password
Summary: [RFE] Provide the ability to use su as the effective method with password
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Remote Execution
Version: 6.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: 6.9.0
Assignee: Suraj Patil
QA Contact: Peter Ondrejka
URL:
Whiteboard:
: 1923771 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-14 08:37 UTC by Barbora Vassova
Modified: 2024-12-20 18:48 UTC (History)
6 users (show)

Fixed In Version: tfm-rubygem-foreman_remote_execution-4.0.0, tfm-rubygem-foreman_remote_execution_core-1.4.0,
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-21 13:11:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 30188 0 Normal Closed Provide the ability to use su as the effective method with password 2021-02-08 18:34:56 UTC
Red Hat Product Errata RHSA-2021:1313 0 None None None 2021-04-21 13:12:12 UTC

Description Barbora Vassova 2019-02-14 08:37:25 UTC
Business Case
Due to an unspecified security compliance being in use, it is required to have disabled sudo for all accounts, to not allow the root account to SSH into the remote machine and switching to root account must require the user to supply the root password. Usage of dzdo is not suitable either. Therefore, in this case it is necessary to use su as the effective user method, but with password. This is currently not possible due to su being available only as passwordless option. 

Technical Requirements:
Providing a new parameter to specify su password, similar to the already present "Sudo password" in settings (or "ansible_sudo_pass" in case of Ansible jobs)

Additional information: 
This concerns primarily "Run Commands - SSH Default" and "Run Commands - Ansible Default" templates.

Comment 2 Suraj Patil 2020-06-22 15:46:55 UTC
Created redmine issue https://projects.theforeman.org/issues/30188 from this bug

Comment 3 Bryan Kearney 2020-07-23 12:03:19 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30188 has been resolved.

Comment 4 Peter Ondrejka 2020-12-09 13:54:43 UTC
Verified on Satellite 6.9 snap 4, su effective user with password enabled through global setting executes rex job as expected

Comment 5 Adam Ruzicka 2021-02-02 10:27:36 UTC
*** Bug 1923771 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2021-04-21 13:11:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:1313


Note You need to log in before you can comment on or make changes to this bug.