Bug 2210770 - pam_systemd_home spams /var/log/secure when a cron entry is run
Summary: pam_systemd_home spams /var/log/secure when a cron entry is run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-29 12:49 UTC by Trevor Hemsley
Modified: 2023-07-19 03:14 UTC (History)
9 users (show)

Fixed In Version: systemd-253.7-1.fc38
Clone Of:
Environment:
Last Closed: 2023-07-19 03:14:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github systemd systemd pull 27957 0 None open pam_systemd_home: suppress LOG_DEBUG msgs if debugging is off 2023-06-07 13:23:59 UTC

Description Trevor Hemsley 2023-05-29 12:49:19 UTC
I have a /etc/cron.d/cacti file that contains 

*/5 * * * *     apache  /usr/bin/php /usr/share/cacti/poller.php > /dev/null  2>&1

Every 5 minutes /var/log/secure shows 

May 29 13:40:01 trevor (systemd)[167306]: pam_systemd_home(systemd-user:account): systemd-homed is not available: Could not activate remote peer: activation request failed: unknown unit.
May 29 13:40:01 trevor (systemd)[167303]: pam_unix(systemd-user:session): session opened for user root(uid=0) by (uid=0)
May 29 13:40:01 trevor (systemd)[167306]: pam_unix(systemd-user:session): session opened for user apache(uid=48) by (uid=0)

The systemd-homed service is disabled.

Reproducible: Always

Steps to Reproduce:
1. Install fc38 and cacti
2. Add recommended cacti crontab entry to run the poller
3. systemctl disable systemd-homed
4. tail -f /var/log/secure
Actual Results:  
Spam spam spam!

Expected Results:  
No rubbish cluttering up my log files

Fully up to date FC38 system

Comment 1 Fedora Update System 2023-07-17 16:58:07 UTC
FEDORA-2023-b07a6a9665 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-b07a6a9665

Comment 2 Fedora Update System 2023-07-18 01:26:18 UTC
FEDORA-2023-b07a6a9665 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-b07a6a9665`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-b07a6a9665

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2023-07-19 03:14:09 UTC
FEDORA-2023-b07a6a9665 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


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