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 1847501

Summary: pam_motd spews errors
Product: Red Hat Enterprise Linux 8 Reporter: Peter Robinson <perobins>
Component: pamAssignee: Iker Pedrosa <ipedrosa>
Status: CLOSED NOTABUG QA Contact: Brian Ipsen <brian.ipsen>
Severity: medium Docs Contact:
Priority: low    
Version: 8.3CC: dapospis, dlavu, extras-qa, orion, pbrezina, pbrobinson, rpm, sgadekar, tmraz
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard: sync-to-jira qetodo
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1660935 Environment:
Last Closed: 2020-11-05 14:12:18 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: 1660935    
Bug Blocks: 1847992    

Description Peter Robinson 2020-06-16 14:01:14 UTC
+++ This bug was initially created as a clone of Bug #1660935 +++

Description of problem:

pam_motd spews errors:

sshd[18088]: pam_motd(sshd:session): pam_motd: error scanning directory /etc/motd.d
sshd[18088]: pam_motd(sshd:session): pam_motd: error scanning directory /run/motd.d
sshd[18088]: pam_motd(sshd:session): pam_motd: error scanning directory /usr/lib/motd.d

Version-Release number of selected component (if applicable):
pam-1.3.1-13.fc28.x86_64

Steps to Reproduce:
1. ssh into machine

Expected results:
No error messages in logs

Additional info:
I would suggest that pam provide empty /etc/motd.d, /run/motd.d, and /usr/lib/motd.d directories.

--- Additional comment from Fedora Update System on 2018-12-20 14:48:16 UTC ---

pam-1.3.1-15.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-93c745f2e2

--- Additional comment from Fedora Update System on 2018-12-20 14:48:19 UTC ---

pam-1.3.1-15.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a0472bc83b

--- Additional comment from Fedora Update System on 2018-12-21 05:47:17 UTC ---

pam-1.3.1-15.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-93c745f2e2

--- Additional comment from Fedora Update System on 2018-12-21 21:06:08 UTC ---

pam-1.3.1-15.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a0472bc83b

--- Additional comment from Fedora Update System on 2018-12-23 02:52:58 UTC ---

pam-1.3.1-15.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

--- Additional comment from Fedora Update System on 2018-12-24 01:48:35 UTC ---

pam-1.3.1-15.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 2 Peter Robinson 2020-07-16 15:04:50 UTC
I've filed the following PR to back port the Fedora fix for this https://src.osci.redhat.com/rpms/pam/pull-request/6

Comment 4 Peter Robinson 2020-08-20 16:09:39 UTC
sgadekar: please comment

Comment 5 shridhar 2020-08-24 07:51:52 UTC
ack for rhel-8.4

Comment 6 shridhar 2020-08-24 09:27:45 UTC
Hello, it is bit late for inclusion of bugzilla for rhel-8.3. Thus I propose to set rhel-8.4 as target.
Thank you,
Shridhar

Comment 9 Iker Pedrosa 2020-11-05 14:12:18 UTC
As commit https://github.com/linux-pam/linux-pam/commit/f9c9c72121eada731e010ab3620762bcf63db08f has not been included in RHEL this bugzilla is not present in RHEL. Taking into account this information I'm closing it as notabug.

Comment 10 Tim Jackson 2022-06-03 21:49:39 UTC
This issue has made it into CentOS Stream 8; it's present in pam-1.3.1-18.el8.x86_64

Comment 11 Tim Jackson 2022-06-03 22:00:48 UTC
Created CentOS Stream 8 bug: bug #2093495