Journalctl logs for a unit running under different user without sudo
1
vote
1
answer
1854
views
Let's say I have two users. One is admin and has sudo privileges and one is a regular user. Regular user runs a process and admin want's to see the process logs without using sudo. How to achieve this? I also tried to add admin into adm and systemd-journal and while the the error message about not seeing other users and system logs disappeared, the logs still don't show.
Process writes into
/var/log/journal
dir stat:
Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 803h/2051d Inode: 17039878 Links: 2 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2022-11-03 21:45:05.578697401 +0100 Modify: 2022-10-17 22:40:23.353619074 +0200 Change: 2022-10-17 22:40:23.353619074 +0200 Birth: -
Asked by Curu
(13 rep)
Oct 26, 2022, 11:24 AM
Last activity: Nov 21, 2023, 09:18 PM
Last activity: Nov 21, 2023, 09:18 PM