utmp/wtmp/btmp/lastlog #2744
Replies: 4 comments 2 replies
-
Some comments:
About PAM: are there still distributions not using PAM? With some exceptions mainly for openssh, all plans to solve the Y2038 problem for utmp/wtmp/lastlog are based on PAM. About btmp/lastb: that's only supported by very few tools, which means not reliable, and I haven't found anybody in all discussions who said he is using it/needs it. |
Beta Was this translation helpful? Give feedback.
-
As author of the |
Beta Was this translation helpful? Give feedback.
-
I've rebased the wtmp branch to devel in my own branch:- https://github.com/matt335672/xrdp/tree/wtmp I've also added a few improvements on the end. Notably, you need It's currently failing testing. The problem is the use of strncpy() which has a gotcha related to the length. I'll fix it tomorrow. @metalefty, @moobyfr - comments welcome. I'm not going to force-push this to the main wtmp branch unless you're happy with that. Please let me know if you are. |
Beta Was this translation helpful? Give feedback.
-
See PR #2745. |
Beta Was this translation helpful? Give feedback.
-
I've been looking at #1077, #1302, @moobyfr's wtmp branch and other issues relating to utmp, wtmp and lastlog. We don't currently support these files directly, but some users have a requirement for them to be maintained by xrdp.
This seems to be a fairly complex area, made more complicated by potential Y2038 issues. Regarding the last @thkukuk has written extensively about this - see https://www.thkukuk.de/blog/Y2038_glibc_lastlog_64bit/ and also https://github.com/thkukuk/utmpx/blob/main/Y2038.md
The situation as I see it regarding xrdp is as follows:-
I haven't considered any other possible platforms.
Questions I have are:-
Thanks for any feedback.
Beta Was this translation helpful? Give feedback.
All reactions