rlogin from mgetty

"Robert J. Brown" (rj@eli.wariat.org)
Sat, 5 Apr 1997 01:55:50 -0600


>>>>> "G" == G Richter <richter@ecos.de> writes:

 G> Hi,

 G> I want to start a rlogin when a user dials in via mgetty. I
 G> have enter the following line in login.config:

 G> xmb_rlp xmb_rlp xmb_rlp /usr/bin/rlogin -l xmb_rlp
 G> neptun.ecos.de

 G> I also tried

 G> xmb_rlp - - /usr/bin/rlogin -l xmb_rlp neptun.ecos.de
             
 G> But in both casese it doesn't works. Here are the logfile:

 G> 04/04 07:44:44 yS0 match: user='xmb_rlp', key='xmb_rlp'*** hit!
 G> 04/04 07:44:44 yS0 login: utmp entry: xmb_rlp 04/04 07:44:44
 G> yS0 utmp + wtmp entry made 04/04 07:44:44 yS0 login: user id:
 G> xmb_rlp (uid 523, gid 523) 04/04 07:44:44 yS0 calling login:
 G> cmd='/usr/bin/rlogin', argv[]='rlogin -l xmb_ rlp
 G> neptun.ecos.de' 04/04 07:44:44 ##### data dev=ttyS0, pid=2168,
 G> caller=none, conn='26400/LAPM/V42 BIS', name='',
 G> cmd='/usr/bin/rlogin', user='xmb_rlp'
 

 G> -- 04/04 07:44:44 yS0 check for lockfiles

 G> If I start the same command from the commandline it works. If
 G> I enter a normal login in login.config it works too.

 G> Has anybody any idea whats wrong?

 G> Thanks Gerald

The trouble is that rlogin inherits the username from the process that
forks it. Since you haven't logged in with a "real" unsername, rlogin
uses root, which is not valid to rlogin with to most systems.

-- 
-------- "And there came a writing to him from Elijah" [2Ch 21:12] --------
Robert Jay Brown III rj@eli.wariat.org http://eli.wariat.org 1 847 705-0424
Elijah Laboratories Inc.; 37 South Greenwood Avenue; Palatine, IL 60067-6328
----- M o d e l i n g t h e M e t h o d s o f t h e M i n d ------
.