Re: Recording usage without write permission

"David W. Hodgins" <[email protected]>
Newsgroups alt.comp.lang.shell.unix.bourne-bash
Organization A noiseless patient Spider
Message-ID <[email protected]>
On Mon, 16 Oct 2023 09:44:59 -0400, Michael F. Stemper <[email protected]> wrote:
> But, I'm curious as to whether there is some way to accomplish the
> same thing without giving promiscuous access to a file in my user
> space. Maybe some kind of messaging? Send a message to a daemon
> executing as me, and have that do the reading and writing? Some
> other method?

That's exactly how rsyslog and systemd-journald work. They each use a
daemon that runs as root the records the log entries. Whether or not
the user has read access depends on what groups the user is a member
of.

With systemd-journald, it supports both system and user level journal
entries.

Regards, Dave Hodgins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.