🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sequent
Article #878

Re: why does who not show rlogin-users

#878
From: pwolfe
Date: Thu, 08 Jun 1989 12:48
56 lines
2806 bytes
> /* Written by jand@maestro.htsa.aha.nl */
> Can anyone tell me why I'm not registered in /etc/utmp if I'm logged
> in from another system or use rlogin `hostname` ?
> On the Balance we have here, only 'real tty' users are shown with 'who'.
> The same goes for rwho, but rwho won't even show the users on other
> machines (though this may be an unrelated problem).
> Jan Derriks.

Entries are made in /etc/utmp only for terminals that appear in /etc/ttys.  The
"who" and "rwhod" programs use /etc/utmp to identify who is logged on.

You need to edit your /etc/ttys file and add a line for each pseudo terminal
that is defined (ls /dev/ttyp?).  Remember Sequent has a unique pty naming
scheme (ttyp[0-9][a-zA-Z]).  Pseudo terminals should have a zero in column one,
so getty's will not be started for them.

I believe a reboot may be neccessary for this change to become effective.  In
fact, it's probably not a great idea to edit /etc/ttys while the system is
running multi user, since it could cause some programs to work incorrectly.  It
should be okay as long as you don't insert or delete any data in the middle.
If you substitute the same length data, or add on to the end of the file, no
problems should occur.

From our /etc/ttys file on our Balance:
	12ttyc0
	0cttyc1
	10ttyd0
	[ lines deleted ]
	02ttyhf
	02ttyp0
	[ lines deleted ]
	02ttyp9
	02ttypa
	[ lines deleted ]
	02ttypz
	02ttypA
	[ lines deleted ]
	02ttypY
	02ttypZ

Your rwho problem is probably related.  Rwhod only broadcasts info about
terminals that have entries in /etc/utmp.  In fact, every program that uses the
"getlogin()" system call (such as talk, su) will not be able to identify you,
unless they use "getpwuid(getuid())" when getlogin() returns NULL.  Make sure
the /etc/ttys file is updated on all machines across your network, and your
rwho program should work okay.

If your rwho doesn't acknowledge the existence of another host that you *know*
is running rwhod, check the broadcast address being used.  The broadcast
address changed between BSD 4.2 and 4.3 (from 0.0.0.0 to 255.255.255.255).  You
may have to alter the /etc/ifconfig command line in /etc/rc.local to cause all
your systems to use the same broadcast address.

Patrick Wolfe	(pat@kai.com, {uunet,uiucuxc,sequent}!kailand!pat)
System Manager, Kuck and Associates, Inc.
Technical Details
Message-ID: <2400056@kailand>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!kailand!pwolfe
References: <964@maestro.htsa.aha.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!kailand!pwolfe
From: pwolfe@kailand.KAI.COM
Newsgroups: comp.sys.sequent
Subject: Re: why does who not show rlogin-users
Message-ID: <2400056@kailand>
Date: 8 Jun 89 12:48:00 GMT
References: <964@maestro.htsa.aha.nl>
Lines: 56
Nf-ID: #R:maestro.htsa.aha.nl:964:kailand:2400056:000:2320
Nf-From: kailand.KAI.COM!pwolfe    Jun  8 07:48:00 1989