- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ttytype: couldn't open /dev/tty for reading st...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 06:51 AM
07-26-2018 06:51 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 08:44 AM
07-26-2018 08:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 02:20 PM
07-26-2018 02:20 PM
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
>>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 02:46 PM
07-26-2018 02:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2018 02:56 PM
07-26-2018 02:56 PM
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
>>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2018 06:25 AM
07-30-2018 06:25 AM
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.