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

RDP sessions opened with xrdp are not listed in system tools like who #2676

Closed
pktiuk opened this issue May 16, 2023 · 7 comments
Closed

RDP sessions opened with xrdp are not listed in system tools like who #2676

pktiuk opened this issue May 16, 2023 · 7 comments

Comments

@pktiuk
Copy link

pktiuk commented May 16, 2023

I would like to have universal way of checking list of active sessions on my machine and I use universal linux tools to track it.
I use cockpit and who commandline utility. None of these lists sessions opened via xrdp.

I guess something is wrong with initializing sessions.

I opened similar issue in cockpit repository: cockpit-project/cockpit#18810

@matt335672
Copy link
Member

Can you tell us what your OS is?

I'm pretty sure this is a duplicate of #1302

@pktiuk
Copy link
Author

pktiuk commented May 16, 2023

Ubuntu 22.04

@pktiuk
Copy link
Author

pktiuk commented May 17, 2023

@matt335672
so, it this issue a duplicate or not?
Could I help you with solving this issue in any way? (I can provide additional logs and test it also on Ubuntu 20.04)

@matt335672
Copy link
Member

Yes it is.

For who to work, you need the something to update /var/run/utmp. This functionality doesn't seem to be available via a Linux PAM module at present. There's an interesting comment in the Wikipedia entry for utmp:-

These files are not set by any given PAM module (such as pam_unix.so or pam_sss.so) but are set by the application performing the operation (e.g. mingetty, /bin/login, or sshd). As such it is the obligation of the program itself to record the utmp information.

I'm not sure how true this is in general - on FreeBSD I think PAM does do this.

The good news is that now we've re-architected sesman in devel, adding support for these should be quite easy. This isn't going to be back-ported to v0.9.x however.

@pktiuk
Copy link
Author

pktiuk commented May 17, 2023

The good news is that now we've re-architected sesman in devel, adding support for these should be quite easy. This isn't going to be back-ported to v0.9.x however

I'm fine with that. I just hope it fixed version will be available in Ubuntu 24.04 :)

@akarl10
Copy link
Contributor

akarl10 commented May 22, 2023

@pktiuk if all you want to know is who is logged in (and not really more) maybe loginctl list-sessions is a who alternative for you.

Of course this will not solve the issue that cockpit does not show the last login

@matt335672
Copy link
Member

Closing as a duplicate of #1302

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

3 participants