endless pam_kwallet5 etc logs?

I see an endless stream of these in my logs:


Oct 27 06:28:41 archimedes sudo[9712]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9712]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:28:41 archimedes sudo[9712]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:28:41 archimedes sudo[9712]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:28:41 archimedes sudo[9712]: pam_kwallet5(sudo:session): pam_kwallet5: open_session called without kwallet5_key
Oct 27 06:28:41 archimedes sudo[9712]: pam_unix(sudo:session): session closed for user root
Oct 27 06:28:41 archimedes sudo[9712]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Oct 27 06:28:41 archimedes sudo[9712]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9714]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9714]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:28:41 archimedes sudo[9714]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:28:41 archimedes sudo[9714]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:28:41 archimedes sudo[9714]: pam_kwallet5(sudo:session): pam_kwallet5: open_session called without kwallet5_key
Oct 27 06:28:41 archimedes sudo[9714]: pam_unix(sudo:session): session closed for user root
Oct 27 06:28:41 archimedes sudo[9714]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Oct 27 06:28:41 archimedes sudo[9714]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9716]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9716]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:28:41 archimedes sudo[9716]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:28:41 archimedes sudo[9716]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:28:41 archimedes sudo[9716]: pam_kwallet5(sudo:session): pam_kwallet5: open_session called without kwallet5_key
Oct 27 06:28:41 archimedes sudo[9716]: pam_unix(sudo:session): session closed for user root
Oct 27 06:28:41 archimedes sudo[9716]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Oct 27 06:28:41 archimedes sudo[9716]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9718]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9718]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:28:41 archimedes sudo[9718]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:28:41 archimedes sudo[9718]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:28:41 archimedes sudo[9718]: pam_kwallet5(sudo:session): pam_kwallet5: open_session called without kwallet5_key
Oct 27 06:28:41 archimedes sudo[9718]: pam_unix(sudo:session): session closed for user root
Oct 27 06:28:41 archimedes sudo[9718]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Oct 27 06:28:41 archimedes sudo[9718]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9720]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:28:41 archimedes sudo[9720]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:28:41 archimedes sudo[9720]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:28:41 archimedes sudo[9720]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:28:41 archimedes sudo[9720]: pam_kwallet5(sudo:session): pam_kwallet5: open_session called without kwallet5_key
Oct 27 06:28:41 archimedes sudo[9720]: pam_unix(sudo:session): session closed for user root
Oct 27 06:28:41 archimedes sudo[9720]: pam_kwallet5(sudo:session): pam_kwallet5: pam_sm_close_session
Oct 27 06:28:41 archimedes sudo[9720]: pam_kwallet5(sudo:setcred): pam_kwallet5: pam_sm_setcred
Oct 27 06:29:13 archimedes su[9836]: pam_kwallet5(su:auth): (null): pam_sm_authenticate
Oct 27 06:29:13 archimedes su[9836]: pam_kwallet5(su:auth): pam_kwallet5: Couldn't get password (it is empty)
Oct 27 06:29:14 archimedes su[9836]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Oct 27 06:29:14 archimedes su[9836]: pam_systemd(su:session): Cannot create session: Already running in a session
Oct 27 06:29:14 archimedes su[9836]: pam_unix(su:session): session opened for user root by h410(uid=1000)
Oct 27 06:29:14 archimedes su[9836]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_open_session
Oct 27 06:29:14 archimedes su[9839]: pam_kwallet5: final socket path: /run/user/1000/kwallet5.socket
Oct 27 06:29:14 archimedes su[9839]: pam_kwallet5-kwalletd: Couldn't listen in socket
Oct 27 06:29:14 archimedes su[9836]: pam_kwallet5(su:session): pam_kwallet5: Couldn't fork to execv kwalletd
Oct 27 06:29:14 archimedes sudo[9944]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:14 archimedes sudo[9944]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:29:14 archimedes sudo[9944]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:29:14 archimedes sudo[9944]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:29:14 archimedes sudo[9944]: pam_kwallet5(sudo:session): (null): we were already executed
Oct 27 06:29:14 archimedes sudo[9944]: pam_unix(sudo:session): session closed for user root
Oct 27 06:29:14 archimedes sudo[9944]: pam_kwallet5(sudo:session): (null): pam_sm_close_session
Oct 27 06:29:14 archimedes sudo[9944]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:14 archimedes sudo[9946]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:14 archimedes sudo[9946]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:29:14 archimedes sudo[9946]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:29:14 archimedes sudo[9946]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:29:14 archimedes sudo[9946]: pam_kwallet5(sudo:session): (null): we were already executed
Oct 27 06:29:14 archimedes sudo[9946]: pam_unix(sudo:session): session closed for user root
Oct 27 06:29:14 archimedes sudo[9946]: pam_kwallet5(sudo:session): (null): pam_sm_close_session
Oct 27 06:29:14 archimedes sudo[9946]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:14 archimedes sudo[9948]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:14 archimedes sudo[9948]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:29:14 archimedes sudo[9948]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:29:14 archimedes sudo[9948]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:29:14 archimedes sudo[9948]: pam_kwallet5(sudo:session): (null): we were already executed
Oct 27 06:29:14 archimedes sudo[9948]: pam_unix(sudo:session): session closed for user root
Oct 27 06:29:14 archimedes sudo[9948]: pam_kwallet5(sudo:session): (null): pam_sm_close_session
Oct 27 06:29:14 archimedes sudo[9948]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:15 archimedes sudo[9952]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:15 archimedes sudo[9952]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:29:15 archimedes sudo[9952]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:29:15 archimedes sudo[9952]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:29:15 archimedes sudo[9952]: pam_kwallet5(sudo:session): (null): we were already executed
Oct 27 06:29:15 archimedes sudo[9952]: pam_unix(sudo:session): session closed for user root
Oct 27 06:29:15 archimedes sudo[9952]: pam_kwallet5(sudo:session): (null): pam_sm_close_session
Oct 27 06:29:15 archimedes sudo[9952]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:15 archimedes sudo[9954]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred
Oct 27 06:29:15 archimedes sudo[9954]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Oct 27 06:29:15 archimedes sudo[9954]: pam_unix(sudo:session): session opened for user root by h410(uid=0)
Oct 27 06:29:15 archimedes sudo[9954]: pam_kwallet5(sudo:session): (null): pam_sm_open_session
Oct 27 06:29:15 archimedes sudo[9954]: pam_kwallet5(sudo:session): (null): we were already executed
Oct 27 06:29:15 archimedes sudo[9954]: pam_unix(sudo:session): session closed for user root
Oct 27 06:29:15 archimedes sudo[9954]: pam_kwallet5(sudo:session): (null): pam_sm_close_session
Oct 27 06:29:15 archimedes sudo[9954]: pam_kwallet5(sudo:setcred): (null): pam_sm_setcred

What are these logs telling me is wrong? I’d like to find/fix it.

If nothing is wrong, this many log entries – many times more frequent than anything you’d want to log – aren’t useful. How do shut these up?

Those are actually from “sudo”.

There should not be an endless stream, unless you are doing an endless stream of “sudo” commands.

It looks as if “sudo” processes the PAM stack for user root, as part of switching to root. And I guess root is not setup with a “kwallet” which probably causes those messages.

I rarely use “sudo” so I had not noticed these. But I did use it as a test, to see if I get those messages. And, yes, I get them.

Apart from that, I would suggest you ignore those logs – but maybe use “sudo” less often.