Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#12507 - Login accounting don't show the $DISPLAY var
Attached to Project:
Arch Linux
Opened by Gerhard Brauer (GerBra) - Friday, 19 December 2008, 16:52 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 28 May 2009, 18:03 GMT
Opened by Gerhard Brauer (GerBra) - Friday, 19 December 2008, 16:52 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 28 May 2009, 18:03 GMT
|
DetailsDescription:
kernel26 > 2.6.27.6 don't show the display numbers when querying user accounting. This occurs with who, w or last. Additional info: * package version(s) kernel26 2.6.27.8-1 * config and/or log files etc. Output from last on 2.6.27.6 (notice the X-Display-Nr. after the login-tty's): gerhard :0 Fri Dec 19 17:26 still logged in reboot system boot 2.6.27-ARCH Fri Dec 19 17:26 (00:04) gbkde pts/3 :2 Fri Dec 19 16:53 - down (00:32) gbkde pts/4 :2 Fri Dec 19 14:17 - down (03:07) gbkde vc/2 Fri Dec 19 14:17 - down (03:08) gbkde vc/2 Fri Dec 19 14:17 - 14:17 (00:00) root vc/1 Fri Dec 19 12:50 - 13:03 (00:13) root vc/1 Fri Dec 19 12:50 - 12:50 (00:00) gbkde pts/4 :2 Fri Dec 19 12:37 - 14:17 (01:40) gbkde vc/2 Fri Dec 19 12:37 - 13:03 (00:26) gbkde vc/2 Fri Dec 19 12:37 - 12:37 (00:00) gbkde pts/4 :1 Fri Dec 19 12:03 - 12:37 (00:34) gbkde pts/4 :1 Fri Dec 19 11:46 - 12:03 (00:16) who: gerhard :0 2008-12-19 17:26 w: 17:42:48 up 16 min, 1 user, load average: 0,29, 0,43, 0,30 USER TTY LOGIN@ IDLE JCPU PCPU WHAT gerhard :0 17:26 ?xdm? 31.77s 0.44s icewm-session And on a machine with 2.6.27.8: last: gerhard vc/2 Wed Dec 10 19:55 still logged in gerhard vc/2 Wed Dec 10 19:55 - 19:55 (00:00) who: root vc/1 2008-12-10 19:54 gerhard vc/2 2008-12-10 19:55 w: 17:45:31 up 8 days, 21:52, 3 users, load average: 0,06, 0,04, 0,00 USER TTY LOGIN@ IDLE JCPU PCPU WHAT root vc/1 10Dec08 2:58m 0.46s 0.41s -bash gerhard vc/2 10Dec08 8days 0.80s 0.02s /bin/sh /usr/bin/startx /usr/bin/icewm-session You see, regardless if X is startet after a tty-Login or with a DisplayManager: On last kernel account infos don't show the DISPLAY-Nums anymore. So it's not possible to determine who is looged in on a given display. (Both outputs have running X Session with a logged in user) Maybe this comes from CONFIG_BSD_PROCESS_ACCT=y in current kernel? |
This task depends upon
$ w
16:30:34 up 41 min, 1 user, load average: 1,53, 1,29, 0,98
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
user :0 15:50 ?xdm? 7:15 0.38s ck-launch-session /usr/bin/openbox-session
$ who
user :0 2009-04-14 15:50
$ last|head -1
user :0 Tue Apr 14 15:50 still logged in