You are not logged in.
Within the past few months, I am invisible from /usr/bin/users it seems (running it gives a null). Is this true for others? I am running lxdm+xfce4 and logging locally.
EDIT: Neither /usr/bin/w nor /usr/bin/who nor /usr/bin/users finds me ![]()
Even running them as root gives no output that is reflective of who is logged into the box. Has loginctl totally taken over or...?
Last edited by graysky (2015-10-26 19:45:17)
Offline
Log in without lxdm and see if that makes a difference.
Offline
Log in without lxdm and see if that makes a difference.
Yes, Logging into a tty or ssh makes me show-up in those tools.
Offline
Seems most display managers break things implement their own unique approach.
Offline
Well, if my goal is to find users logged into my box through loginctl:
loginctl --no-legend list-users | awk '{ print $2 }' | sed ':a;N;$!ba;s/\n/ /g'Does that seem sane?
Offline
I can see why the X session wouldn't be listed if the DM does things it's own way - but once you open a virtual terminal, that session should count - I would think.
For me each 'window' in tmux under X counts as a distinct login (so I show up 4 times when I have 3 tmux windows/panes/tabs open).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Well, if my goal is to find users logged into my box through loginctl:
loginctl --no-legend list-users | awk '{ print $2 }' | sed ':a;N;$!ba;s/\n/ /g'Does that seem sane?
Close:
loginctl --no-legend list-users | awk '{ printf "%s ",$2 }'![]()
Offline
graysky wrote:Well, if my goal is to find users logged into my box through loginctl:
loginctl --no-legend list-users | awk '{ print $2 }' | sed ':a;N;$!ba;s/\n/ /g'Does that seem sane?
Close:
loginctl --no-legend list-users | awk '{ printf "%s ",$2 }'
That ends in an odd, highlighted symbol for me:
facade love %Offline
That's Zsh's symbol for the lack of a new line. It shouldn't be an issue if you are scripting.
Offline
Thanks, learn something new every day.
Offline