Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1872562

Summary: Show motd message only to root/wheel users
Product: Red Hat Enterprise Linux 8 Reporter: Martin Pitt <mpitt>
Component: cockpitAssignee: Allison Karlitskaya <allison.karlitskaya>
Status: CLOSED ERRATA QA Contact: Jan Ščotka <jscotka>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: gardar.arnarsson, mmarusak, mpitt, sbarcomb
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 15:06:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1861640    
Bug Blocks:    

Description Martin Pitt 2020-08-26 05:24:07 UTC
Description of problem: It does not make much sense to show the motd message "Do this to enable cockpit" to non-administrators. Event the "go here to access cockpit" message is of questionable value for non-admins, as cockpit doesn't allow you to do much (it may still be useful for monitoring, though).

Change the /run/cockpit/*motd permissions so only root:wheel can read them. This does not actually have an effect with current PAM, that still needs to be fixed -- see bug 1861640.


Version-Release number of selected component (if applicable):

cockpit 225

Comment 3 Martin Pitt 2020-11-11 09:01:36 UTC
Being fixed in https://github.com/cockpit-project/cockpit/pull/14856

Comment 10 errata-xmlrpc 2021-05-18 15:06:39 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 (cockpit bug fix and enhancement update), 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/RHBA-2021:1684

Comment 11 Martin Pitt 2021-08-25 13:50:13 UTC
*** Bug 1996639 has been marked as a duplicate of this bug. ***