Re: Recording usage without write permission
"David W. Hodgins" <[email protected]> Mon, 16 Oct 2023 13:39:48 -0400
| 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