6

I used to be able to check which users were logged into a machine running Scientific Linux (CERN) using w (or users or who) but this no longer works unless the user has a terminal open. Anyone who has logged in and is running a Gnome session with e.g. Firefox and Thunderbird does not show up in the list.

I'm not sure when this stopped working, but with a fully updated SLC 5.8 machine it does not work as I would expect. Is there some configuration that fixes this?

Thanks to all who made suggestions. Looks like this might be easier in just about every other version of Fedora and Red Hat, so I'll have to wait until we upgrade to version 6.

Ben
  • 153
  • 2
  • 10

4 Answers4

1

I believe in RHEL6 (before systemd anyhow) session management is tracked by consolekit.

Try ck-list-sessions and see if that shows you anything.

For completeness, on Fedora 16 and 17 this feature was deprecated in favour of systemd-logind which you can list sessions with using loginctl.

Matthew Ife
  • 24,261
0

You could try

last | grep "still logged in"

0

Are you able to see all running processes?

ps aux | awk '{print $1}' | sort | uniq
Nick R
  • 193
-1

I don't know that this will work, and since I'd rather die than use an RHEL-type box as a desktop[1] I have no way to test it, but have you tried finger?

[1] Don't get me wrong, I love RHEL as a server OS, but as a desktop I find it a bit like being stuck in 1995. All my desktops run Fedora, I'm afraid.

MadHatter
  • 81,580