User systemd logs are not created

All identical machines running Fedora 21 in a cluster have the same problems:

Attempting to pull the user's log using journalctl -r yields:

No journal files were opened due to insufficient permissions. 

Trying logctl -user -r gives:

 No journal files were found. 

Checking / var / log / journal / [whatever] gives system logs (which seem to work fine as root) and one or two user logs. Logging in as a user who has a user log in this directory shows that these users can simply pull their own log.

Logs seem to be created for some users, but not for others. I cannot find anything else regarding logged-in users, and these are not the same users who demonstrate the problem on each system, despite the identical / etc / passwd, / etc / group and / etc / shadow files on the systems.

All of this worked fine on Fedora 20.

thanks

+6
source share
1 answer

I believe this is due to this issue .

I had this problem on Ubuntu 17.10. One of my users could view log entries, but the other could not. The problem was resolved by changing the Storage directive of the [Journal] section from /etc/systemd/journald.conf to persistent :

Edit journald.conf

 $ sudo vi /etc/systemd/journald.conf 

Original configuration

 [Journal] #Storage=auto ... 

New configuration

 [Journal] Storage=persistent ... 

After restarting the log, all users can view their respective logs:

 $ sudo systemctl restart systemd-journald 
+1
source

Source: https://habr.com/ru/post/988927/


All Articles