Description of problem: Description of problem: We would like to put some messages in /etc/motd.d (or /run/motd.d) which only apply to system administrators, i. e. are readable by root or the wheel group. But it seems pam_motd reads all the motd files as root instead of as the target user. I wouldn't really classify that as a security issue, but it does cause some mild annoyance of users who see messages that don't apply to them. Version-Release number of selected component (if applicable): pam-1.3.1-26.fc32.x86_64 How reproducible: Always Steps to Reproduce: 1. echo rootonly > /etc/motd.d/rootonly && chmod 600 /etc/motd.d/rootonly 2. Log in (I tested with ssh) as a non-root user Actual results: I see "rootonly" in the motd output after logging in. Expected results: I should not see "rootonly" as the user can't read /etc/motd.d/rootonly. Additional info:
* master: 16cebfeb30a8bd7c7dc269190a054c25b0f8d044 - pam_motd: filter motd by user and group ad8b6feaf8ea989368676acaea905998a807986e - pam_motd: document file filtering
FEDORA-2020-b81b1f2e11 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-b81b1f2e11
FEDORA-2020-b81b1f2e11 has been pushed to the Fedora 33 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-b81b1f2e11` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-b81b1f2e11 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-b81b1f2e11 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2020-082fed0894 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-082fed0894
FEDORA-2020-082fed0894 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-082fed0894` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-082fed0894 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-082fed0894 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.