Operating System - HP-UX
1752489 Members
5780 Online
108788 Solutions
New Discussion юеВ

ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter on HP UX 11.31

 
Eduardo_Eloy
Occasional Contributor

ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter on HP UX 11.31

Hi,

I have te following error when i intend to log in with any user to a server with hp ux 11.31:

ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter

I had review the /etc/profile and .profile and aplied the changes that i saw in the forums but neither of then resolved my problem.

I verified the permission of /dev/pty and they are correct:

user bin / group bin for ll -d /dev/pty

And user bin / group tty for  ll /dev/pty

And this are the kernel pty parameters:

kcusage |grep npty
npty 0 / 200
kcusage |grep nstrpty
nstrpty 60 / 200
kcusage |grep nstrtel
nstrtel 1 / 60

Thanks in advance.

Regards.

5 REPLIES 5
Bill Hassell
Honored Contributor

Re: ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter on HP UX 11.31

It would help if you could post the results of this command;

# ll -d / /dev /dev/tty /dev/pty

 

 



Bill Hassell, sysadmin
Eduardo_Eloy
Occasional Contributor

Re: ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter on HP UX 11.31

Thank for the answer.

This is the output of the command

>> ll -d / /dev /dev/tty /dev/pty
drwxr-xr-x 142 root root 16384 Jul 25 16:36 /
dr-xr-xr-x 141 bin bin 8192 Jun 24 14:19 /dev
drwxr-xr-x 2 bin bin 8192 Apr 5 2012 /dev/pty
crw-rw-rw- 1 bin bin 207 0x000000 Jul 26 08:32 /dev/tty
>>

 

nnrao1502
Advisor

Re: ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter on HP UX 11.31

can u run and  post contents of    cat /etc/inittab

Eduardo_Eloy
Occasional Contributor

Re: ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter on HP UX 11.31

Hi.

This is the output of the command

>>cat /etc/inittab
init:3:initdefault:
ioin::sysinit:/sbin/ioinitrc >/dev/console 2>&1
tape::sysinit:/sbin/mtinit > /dev/console 2>&1
muxi::sysinit:/sbin/dasetup </dev/console >/dev/console 2>&1 # mux init
stty::sysinit:/sbin/stty 9600 clocal icanon echo opost onlcr ixon icrnl ignpar </dev/systty
fs01::wait:/sbin/fs/fsdaemon -k > /dev/null 2>&1 # kill fsdaemon
fs02:123456:respawn:/sbin/fs/fsdaemon -f 0 > /dev/null 2>&1 # start fsdaemon
fs03::wait:/sbin/fs/fsdaemon -t > /dev/null 2>&1 # Wait for fsdaemon to start
vxen::bootwait:/sbin/fs/vxfs/vxenablef -a
brc1::bootwait:/sbin/bcheckrc </dev/console >/dev/console 2>&1 # fsck, etc.
link::wait:/sbin/sh -c "/sbin/rm -f /dev/syscon; \
/sbin/ln /dev/systty /dev/syscon" >/dev/console 2>&1
cprt::bootwait:/sbin/cat /etc/copyright >/dev/syscon # legal req
sqnc::wait:/sbin/rc </dev/console >/dev/console 2>&1 # system init
#powf::powerwait:/sbin/powerfail >/dev/console 2>&1 # powerfail
cons:123456:respawn:/usr/sbin/getty console console # system console
#ttp1:234:respawn:/usr/sbin/getty -h tty0p1 9600
#ttp2:234:respawn:/usr/sbin/getty -h tty0p2 9600
#ttp3:234:respawn:/usr/sbin/getty -h tty0p3 9600
#ttp4:234:respawn:/usr/sbin/getty -h tty0p4 9600
#ttp5:234:respawn:/usr/sbin/getty -h tty0p5 9600
krsd:123456:respawn:/sbin/krsd -i
cspd::boot:/sbin/clu_spawnd -i
sfd:123456:respawn:/sbin/sfd
esmd:234:respawn:/usr/sbin/esmd
#ups::respawn:rtprio 0 /usr/lbin/ups_mond -f /etc/ups_conf
cim1:3456:respawn:/opt/wbem/lbin/cimserverd
vxfs:1:sysinit:/sbin/fs/vxfs5.0/vxenablef -a
ems1::bootwait:/sbin/rm -f /etc/opt/resmon/persistence/runlevel4_flag
ems2::bootwait:/sbin/sh -c "/sbin/cat </dev/null >/etc/opt/resmon/persistence/reboot_flag; /sbin/chmod 644 /etc/opt/resmon/persistence/reboot_flag"
ems3:3456:wait:/sbin/sh -c "/usr/bin/touch /etc/opt/resmon/persistence/runlevel4_flag; /usr/bin/chmod 644 /etc/opt/resmon/persistence/runlevel4_flag"
ems4:3456:respawn:/etc/opt/resmon/lbin/p_client
cdsf:23456:respawn:/usr/sbin/iocdsfd
cdin:3456:once:/usr/sbin/clu_dsf_init
util:23456:respawn:/usr/lbin/utild # Utilization Provider daemon
gvsd::sysinit:/sbin/init.d/avio-vio avioinit >/dev/console 2>&1
 >>

Eduardo_Eloy
Occasional Contributor

Re: ttytype: couldn't open /dev/tty for reading stty: : Not a typewriter on HP UX 11.31

Hi.

Any other informaton that you need?, any actions i have to take to resolve the problem?

Thanks.