对非root用户的journalctl访问
该日记文档说,将用户添加到“systemd-journal”组或“adm”组允许用户访问系统范围日记。 我正在运行最新的CentOS 7,而且我似乎遇到了以非root用户身份访问日志的问题。 这是我的configuration: $ id uid=1000(centos) gid=1000(centos) groups=1000(centos),4(adm),10(wheel),190(systemd-journal) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 $ cat /etc/systemd/journald.conf [Journal] Storage=persistent $ journalctl — Logs begin at Sat 2015-08-29 16:35:52 UTC, end at Sat 2015-08-29 17:28:47 UTC. — Aug 29 16:35:52 hostname … <log continues> journalctl输出中没有系统日志。 这是我的权限configuration: $ ll -a /var/log/journal/f9afeb75a5a382dce8269887a67fbf58/ total 24592 drwxr-xr-x. 2 root root 4096 Aug 29 16:35 […]