Listing online users with 'w' command

Gert Doering (gert@greenie.muc.de)
Mon, 9 Aug 1999 09:37:08 +0200


Hi,

On Sun, Aug 08, 1999 at 06:45:24PM -0300, Wilhelm Isaac Schreiber Litwinski wrote:
>     I use mgetty but I can't get online users listed or logged in my logs.
>     What's the command to make it work?

If the system is setup correctly, this will "just work".  If "w", "who",
"init" and "mgetty" disagree about the location of the utmp file (like
"/etc/utmp" and "/var/run/utmp") things will break.

Without looking at your system, it's hard to say more - find out
(looking at "/usr/include/utmp.h") where mgetty looks for utmp, and find
out where "who" does ("strace who 2>&1 |grep utmp")...

gert
-- 
Gert Doering
Mobile communications ... right now writing from *Braunschweig* :-)) 
... mobile phone: +49 177 2160221 ... or mail me:  gert@greenie.muc.de