Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 4060

General Questions • Re: [Solved] The -g option with journalctl

$
0
0
Could this be a problem related to the system log?
I did post in your other thread the quote journalctl gives when used as unprivileged user. Did you add your user to either group adm or systemd-journal?

Code:

$  groupsmyuser adm staff
I may not have all details in my working memory at the moment, but a year or two back I started removing rsyslog from the mix...

Code:

 $  apt policy rsyslogrsyslog:  Installed: (none) 
During my audit back when I determined all useful, actionable, relevant info is contained within the journal. I have not found piping to grep or even the use of dmesg necessary anymore. The quantity of messages are condensed and fewer in the journal, but never absent, as far as I've found.

If I pull from history, there is a long long list. Some edited examples from multiple end points. Note that I wish the year was included, some of these may be a few years old, bb is a golden base image, forums runs as a layer on that image, server is for backup:

Code:

$ journalctl -g ssh --no-pager.....Oct 19 13:06:52 bb groupadd[3142]: group added to /etc/group: name=_ssh, GID=118Oct 19 13:06:52 bb groupadd[3142]: group added to /etc/gshadow: name=_sshOct 19 13:06:52 bb groupadd[3142]: new group: name=_ssh, GID=118Oct 19 15:33:03 bb systemd[514]: Closed gcr-ssh-agent.socket - GCR ssh-agent wrapper.Oct 19 15:33:03 bb systemd[514]: Closed gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation)......-- Boot 1f9b806a38944c2ba051eeb708bfa9cf --Nov 16 16:04:40 forums systemd[496]: Listening on gcr-ssh-agent.socket - GCR ssh-agent wrapper.Nov 16 16:04:40 forums systemd[496]: Listening on gpg-agent-ssh.socket - GnuPG cryptographic agent (ssh-agent emulation).Nov 16 16:04:43 forums gpg-agent[677]: using fd 3 for ssh socket (/run/user/1001/gnupg/S.gpg-agent.ssh)Nov 16 16:04:43 forums gpg-agent[677]: listening on: std=5 extra=6 browser=4 ssh=3Nov 16 16:04:43 forums gpg-agent[680]: using fd 3 for ssh socket (/run/user/1001/gnupg/S.gpg-agent.ssh)Nov 16 16:04:43 forums gpg-agent[680]: listening on: std=5 extra=6 browser=4 ssh=3.....May 31 08:13:16 forums kernel: [    694]  1001   694     1921       13    53248      181             0 ssh-agentJun 07 11:19:36 forums kernel: [    694]  1001   694     1921       13    53248      181             0 ssh-agent.....Dec 31 15:50:35 server sshd[2349]: Accepted publickey for myuser from 192.168.42.21 port 59292 ssh2: RSA SHA256:BLK+z0NOTdTheuREALeQlKEY+ixMwaeUqmHiEkUgsgDec 31 15:50:35 server sshd[2349]: pam_unix(sshd:session): session opened for user myuser (uid=1001) by (uid=0)Dec 31 15:50:35 server sshd[2349]: pam_unix(sshd:session): session closed for user myuser ..... every time it sneezes... 

Hope this helps a bit.

Statistics: Posted by CwF — 2026-01-01 17:23



Viewing all articles
Browse latest Browse all 4060

Trending Articles