[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bullseye - who and users return nothing



On Tue, Jan 25, 2022 at 03:06:00AM +0000, Gareth Evans wrote:
> On Tue 25 Jan 2022, at 03:02, Gareth Evans <donotspam@fastmail.fm> wrote:
> > On Tue 25 Jan 2022, at 02:54, Greg Wooledge <greg@wooledge.org> wrote:
> >> A google search led me to <https://bugs.archlinux.org/task/47749>
> >> which says that the /run/utmp file is supposed to be created by
> >> "tmpfiles", specifically by the instructions in the configuration
> >> file /usr/lib/tmpfiles.d/systemd.conf .
> >>
> >
> >> On my system, /usr/lib/tmpfiles.d/systemd.conf contains this line:
> >>
> >> F! /run/utmp 0664 root utmp -
> >>
> 
> >> Does your system have this file, and if so, does it contain that line?
> >
> > Thanks, yes:
> >
> > $ sudo cat /usr/lib/tmpfiles.d/systemd.conf | grep utmp
> > F! /run/utmp 0664 root utmp -
> 
> And fwiw (from a comment in the link you provided)
> 
> $ sudo journalctl -b _COMM=systemd-tmpfiles
> -- Journal begins at Sat 2021-08-21 14:27:06 BST, ends at Tue 2022-01-25 03:04:>
> -- No entries --

Next thing to check seems to be:

systemctl status systemd-tmpfiles-setup.service

Make sure it hasn't been disabled or masked, I suppose.  The unit file
contains this command:

ExecStart=systemd-tmpfiles --create --remove --boot --exclude-prefix=/dev

So, I guess make sure yours has that too.  But hopefully you'll discover
that it's been disabled or something silly like that, and then you can
just enable it.


Reply to: