cannot set controlling tty (ioctl)

(jpf@wstar.mil.wi.us)
Wed, 15 Feb 1995 02:10:38 +0100



Any HP-UX user resolve the following problem?

01/29 14:31:15 l00  cannot set controlling tty (ioctl): Invalid argument
01/29 14:31:54 ##### fax dev=cul00, pid=4438, caller=none, name='',
                      id=' "414 820 0211"', +FHNG=000, pages=1, time=00:00:38

The appropriate lines from mg_m_init.c are as follows;

 if ( ioctl( fd, TIOCSCTTY, NULL ) != 0 )
        lprintf( L_ERROR, "cannot set controlling tty (ioctl)" );
                return ERROR;

where TIOCSCTTY is defined as "(0x20000000|(('T')<<8)|33)".


Here are my relevant stats:
--------------------------

Modem:   Supra's ati3 = V1.80-02 TR14-Jxxx-001 207
        Machine: HP-UX wstar A.09.05 A 9000/710
        Device:  crw-rw----   1 uucp sys  1 0x204009 Feb  3 11:19 /dev/cul00

I should point out that mgetty receives and sends faxes just fine, but I'm
unable to login:, here is a transcript from my log file:

02/14 14:14:33 l00  CND: RING[0a][0d][0a]RING ** found **
02/14 14:14:39 l00  cannot set controlling tty (ioctl): Invalid argument
02/14 14:14:39 l00  send: ATA[0d]
02/14 14:14:39 l00  waiting for ``CONNECT''
02/14 14:14:39 l00  got: [0d]
02/14 14:14:39 l00  CND: RING[0a]ATA[0d]
02/14 14:14:39 l00  CND: ATA[0d][0a]CARRIER 14400[0d]
02/14 14:14:57 l00  CND: CARRIER 14400
02/14 14:14:57 l00  CND: found: 14400[0a][0d][0a]PROTOCOL: LAP-M[0d]
02/14 14:14:58 l00  CND: PROTOCOL: LAP-M
02/14 14:14:58 l00  CND: found: LAP-M[0a][0d][0a]CONNECT ** found **
02/14 14:14:58 l00  send: 
02/14 14:14:58 l00  waiting for ``
''
02/14 14:14:58 l00  got:  19200[0d]
02/14 14:14:58 l00  CND: CONNECT 19200
02/14 14:14:58 l00  CND: found: 19200/14400 LAP-M[0a] ** found **
02/14 14:14:58 l00  waiting for line to clear (VTIME), read: 
02/14 14:14:58 l00  looking for utmp entry... (my PID: 7111)
02/14 14:14:58 l00  utmp + wtmp entry made
02/14 14:14:59 l00  getlogname, read:[0d]
02/14 14:15:02 l00  input finished with '\r', setting ICRNL ONLCR
02/14 14:15:03 l00  getlogname, read:jpf[0d]
02/14 14:15:06 l00  input finished with '\r', setting ICRNL ONLCR
02/14 14:15:06 l00  login: '/usr/local/lib/mgetty+sendfax/login.config' must be root/0600: Invalid argument
02/14 14:15:06 l00  calling login: cmd='/bin/login', argv[]='login jpf'
02/14 14:15:06 ##### data dev=cul00, pid=7111, caller=none, conn='19200/14400 LAP-M', name='', cmd='/bin/login', user='jpf'

--
02/14 14:15:12 l00  mgetty: official release 0.22
02/14 14:15:12 l00  check for lockfiles
02/14 14:15:12 l00  checklock: no active process has lock, will remove
02/14 14:15:12 l00  locking the line
02/14 14:15:12 l00  makelock(cul00) called
02/14 14:15:12 l00  do_makelock: lock='/usr/spool/uucp/LCK..cul00'
02/14 14:15:12 l00  lock made
02/14 14:15:12 l00  lowering DTR to reset Modem
02/14 14:15:13 l00  tio_set_flow_control( HARD )
02/14 14:15:13 l00  waiting for line to clear (VTIME), read: 
02/14 14:15:13 l00  send: \d\d\d+++\d\d\d[0d]\dATQ0V1H0[0d]
02/14 14:15:16 l00  waiting for ``OK''
02/14 14:15:16 l00  got: [0d][0a]NO CARRIER
02/14 14:15:16 l00  found action string: ``NO CARRIER''
02/14 14:15:16 l00  init chat failed, exiting...: Invalid argument
02/14 14:15:16 l00  removing lock file

The handoff to login from mgetty looks ok, but login refuses to recognize
a valid user account.  Exec'ing login from a shell in the same manner
works just fine.  Any suggestions or hints would be greatly appreciated.

Thanks.  -- jpf.