Gentoo Archives: gentoo-dev

From: Kyle O'Donnell <kyleo@×××××××.com>
To: gentoo-user@g.o
Cc: gentoo-dev@g.o
Subject: [gentoo-dev] Re: [gentoo-user] oddness with w output
Date: Fri, 10 Jan 2003 21:16:28
Message-Id: Pine.LNX.4.51.0301101607340.24132@yin.onicrom.com
1 All,
2
3 In case anyone else encounters this I found the solution.
4
5 w is a part of the procps packag, of which i just updated to 3.1.5. I
6 uncompressed the source and started to look at w.c and found:
7 (line 236 of w.c)
8
9 #ifndef W_SHOWFROM
10 from = 0;
11 #endif
12
13 The solution was to change the 0 to a 1. poof! it worked.
14
15 I still have yet to figure out the reason why i have a user thats been
16 idle 12000 days.
17
18 thanks,
19 --kyleo
20
21 On Fri, 10 Jan 2003, Kyle O'Donnell wrote:
22
23 > All,
24 >
25 >
26 > When i type 'w' I am missing the FROM field:
27 >
28 > 14:55:44 up 17:32, 5 users, load average: 0.02, 0.02, 0.00
29 > USER TTY LOGIN@ IDLE JCPU PCPU WHAT
30 > kyleo pts/1 Thu21 2:01 4.68s 4.67s irc
31 > kyleo pts/2 Thu21 14:15 0.85s 0.84s pine
32 > kyleo pts/3 Thu21 0.00s 2.94s 0.02s -/bin/tcsh
33 > justinb pts/4 Thu22 12062days 0.01s 0.01s -tcsh
34 > emigre pts/6 08:16 36:39 3.00s 2.99s BitchX
35 >
36 > Also if you look at the justinb user hes been idle over 12000 days..
37 >
38 > The who output shows the hosts my users are coming from but w doesn't
39 >
40 > kyleo pts/1 Jan 9 21:25 (des:S.0)
41 > kyleo pts/2 Jan 9 21:25 (des:S.1)
42 > kyleo pts/3 Jan 9 21:25 (des:S.2)
43 > justinb pts/4 Jan 9 22:53 (xx.xx.xx.xx)
44 > emigre pts/6 Jan 10 08:16 (xx.xx.xx.xx:S.0)
45 >
46 > I just upgraded to the 2.4.19-gentoo-r10 kernel using the medium
47 > grsecurity settings. Prior to this my uptime counter would reset every
48 > 50days.
49 >
50 > Has anyone else expereinced such oddities on their systems, have you found
51 > any solutions?
52 >
53 > thanks,
54 > --kyleo
55 >
56 > --
57 > gentoo-user@g.o mailing list
58 >
59 >
60
61 --
62 gentoo-dev@g.o mailing list