CRUX 3.7: who command shows no logged in users
Hello. I have made an update from CRUX 3.6 to 3.7. Now I have discovered that the output of the "who" command is empty. $ last | head -n3 markus :0.0 :0.0 Fri Sep 30 20:22 gone - no logout root tty2 Fri Sep 30 20:21 still logged in reboot system boot 5.19.12 Fri Sep 30 20:21 still running $ who $ So two users are logged in but "who" shows none. I found out that /var/run/utmp does not exist. But I have an empty file /run/utmp with a timestamp of the last boot time. $ ls -l /var/run/utmp ls: cannot access '/var/run/utmp': No such file or directory $ ls -l /run/utmp -rw-r--r-- 1 root root 0 Sep 30 20:21 /run/utmp Is this a bug in some port, or did something get wrong during the update? How can the issue be resolved? Regards Markus Heinz PS: Thank you very much for maintaining CRUX Linux and providing the new release.
Dear Markus, please try to check if you have the following symlink set: $ ls -la | grep run lrwxrwxrwx 7 root 6 Sep 18:04 run -> ../run It sounds like this didn't work for you.. you can do the following: # rm -r /var/run # prt-get update -fr filesystem This should install the needed symlink for you. Best regards, Tim
Dear Tim. On 02.10.2022 19:02, tbier@posteo.de wrote:
Dear Markus,
please try to check if you have the following symlink set: $ ls -la | grep run lrwxrwxrwx 7 root 6 Sep 18:04 run -> ../run
This symlink was missing.
It sounds like this didn't work for you.. you can do the following: # rm -r /var/run # prt-get update -fr filesystem
This should install the needed symlink for you.
I have deleted the old /var/run folder and reinstalled the "filesystem" port. Now the issue is resolved and /run/utmp which is also accessible by the symlink /var/run/utmp is correctly filled with contents and the "who" command gives correct output again.
Best regards, Tim
Best regards Markus Heinz
participants (2)
-
Markus Heinz
-
tbier@posteo.de