Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work on ubuntu #3

Open
nemanjan00 opened this issue Jun 4, 2018 · 4 comments
Open

Does not work on ubuntu #3

nemanjan00 opened this issue Jun 4, 2018 · 4 comments

Comments

@nemanjan00
Copy link

nemanjan00 commented Jun 4, 2018

Example output on ubuntu:

root     pts/1        2018-05-29 13:52 (57.136.143.112)
  • IP changed

So who | grep tty1 returns nothing

@Mladia
Copy link

Mladia commented Aug 13, 2018

Are you using lxdm?
I am having a similar problem and the thing was, that lxdm does not update the /var/log/utmp, which is used for who.

@nemanjan00
Copy link
Author

Yeah, I think it was lxdm (not 100% sure, I discovered that on friends laptop)

@Ventto
Copy link
Owner

Ventto commented Jan 16, 2019

Hello @nemanjan00,
Thanks for your feedback.

Like you, others are experimenting the same issue with lxdm.
I will take a look closer as soon as I can.

@vvatz
Copy link

vvatz commented Apr 11, 2020

Quick and dirty patch to get it to work with archlinux and lxdm.
First thing was to get the user by

xuser="$(loginctl list-sessions | sed '2!d' | sed "s/^[ \t]*//" | cut -d' ' -f3)"`

on line 69.
Second on my system the virtual terminal number has a leading 0, so i changed line 74 to

vterm="vt0$(printf '%s' "${xtty}" | sed -e 's/tty//g')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants