Re: how avoid logspam "pam_unix(samba:session): session closed for user nobody" ?
Matthias Kühne | Ellerhold Aktiengesellschaft via samba <[email protected]> Tue, 24 Mar 2026 14:09:33 +0100
| Newsgroups | gmane.network.samba.general |
|---|---|
| Message-ID | <[email protected]> |
Hey, try "loginctl enable-linger nobody" Have a nice day, Matthias. Am 24.03.26 um 14:03 schrieb RolandK via samba: > hello, > > we run samba on our server for serving iso-images to proxmox hosts, > and decreased echo_interval from 60 to 10 , for faster failure on hung > mount condition, when iso-server is down for maintenance. > > this is how the corresponding cifs mount on proxmox side looks like: > > //iso-images/iso-ablage on /mnt/pve/iso-images type cifs > (rw,relatime,vers=3.1.1,cache=strict,upcall_target=app,\ > username=guest,uid=0,noforceuid,gid=0,noforcegid,addr=10.0.0.10,file_mode=0755,dir_mode=0755,soft,nounix,\ > > mapposix,rsize=4194304,wsize=4194304,bsize=1048576,retrans=1,echo_interval=10,actimeo=1,closetimeo=1) > > > the corresponding smb.conf entry looks like this: > > [iso-ablage] > browsable=yes > public=yes > writeable=no > guest ok = yes > guest only = yes > force user = nobody > path=/mnt/zfspool/iso-images > > the problem is, that we have way to much spam in iso-images server log > like this: > > #journalctl -u smbd -f > Feb 05 11:48:56 iso-images smbd[543100]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:48:57 iso-images smbd[543103]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:48:59 iso-images smbd[543181]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:01 iso-images smbd[543182]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:03 iso-images smbd[543183]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:06 iso-images smbd[543184]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:07 iso-images smbd[543185]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:08 iso-images smbd[543186]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:11 iso-images smbd[543187]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:12 iso-images smbd[543188]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:15 iso-images smbd[543189]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:16 iso-images smbd[543200]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:18 iso-images smbd[543217]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:20 iso-images smbd[543218]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:22 iso-images smbd[543219]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:25 iso-images smbd[543220]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:26 iso-images smbd[543221]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:29 iso-images smbd[543225]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:31 iso-images smbd[543226]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:33 iso-images smbd[543227]: pam_unix(samba:session): > session closed for user nobody > Feb 05 11:49:35 iso-images smbd[543228]: pam_unix(samba:session): > session closed for user nobody > > log level = 0 does not seem to help > > samba version is 4.22.8+dfsg-0+deb13u1 from trixie-backports (debian) > > how can we get rid of this logspam ? > > regards > Roland -- Senior Webentwickler Datenschutzbeauftragter Ellerhold Aktiengesellschaft Friedrich-List-Str. 4 01445 Radebeul Telefon: +49 (0) 351 83933-61 Web: www.ellerhold.de Facebook: www.facebook.com/ellerhold.gruppe Instagram: www.instagram.com/ellerhold.gruppe LinkedIn: www.linkedin.com/company/ellerhold-gruppe Amtsgericht Dresden / HRB 23769 Vorstand: Stephan Ellerhold, Maximilian Ellerhold Vorsitzender des Aufsichtsrates: Frank Ellerhold --- Diese E-Mail und Ihre Anlagen enthalten vertrauliche Mitteilungen. Sollten Sie nicht der beabsichtigte Adressat sein, so bitten wir Sie um Mitteilung und um sofortiges löschen dieser E-Mail und der Anlagen. Unsere Hinweise zum Datenschutz finden Sie hier: https://www.ellerhold.de/datenschutz/ This e-mail and its attachments are privileged and confidential. If you are not the intended recipient, please notify us and immediately delete this e-mail and its attachments. You can find our privacy policy here: https://www.ellerhold.de/datenschutz/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba