[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail log question



On Fri, Sep 12, 2025 at 15:36:35 +0200, Vincent Lefevre wrote:
> On 2025-09-12 08:05:58 -0400, Greg Wooledge wrote:
> > The other thing you might need to know is that you can get different
> > levels of verbosity when you run the journalctl command as root vs.
> > non-root.  When you "only" got the Starting and Finished messages,
> > I'm betting you ran the journalctl command as a non-root user.  Try it
> > as root.
> 
> Obviously, there are no differencies between root and non-root.

I don't have postfix installed on a system with systemd/journal logging,
so I can't directly demonstrate everything.  I'm relying on people to
do some things correctly on their own.

Here's a different service, where you can *clearly* see that there is
a difference between the output you get as root vs. non-root.

hobbit:~$ journalctl -u ssh
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
-- No entries --
hobbit:~$ sudo journalctl -u ssh
[sudo] password for greg: 
Mar 11 18:31:26 hobbit sshd[518764]: pam_unix(sshd:auth): check pass; user unkn>
[...]


Reply to: