- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script(1) no longer works??
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
Forums
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
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
03-01-2005 02:32 PM
03-01-2005 02:32 PM
Any suggestions?
I already tried "cd /dev; insf -e; insf -d ptym", and several other incantations, but no love. I tried rebooting - still no love.
Here's the details:
xyz 196> cd /tmp
xyz 197>script
Script started, file is typescript
script: Error opening /dev/ptym/clone: Permission denied
could not reset pty ownership and access mode
xyz 198> ll /dev/ptym/clone
/dev/ptym/clone not found
This makes it look like the "clone" driver isn't in the kernel, but it is...
xyz 199> ll /dev/ptym
/dev/ptym/ptyp0 not found
/dev/ptym/ptyp1 not found
/dev/ptym/ptyp2 not found
...
xyz 201>grep clone /stand/system
clone
xyz 202>
Any ideas?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 03:01 PM
03-01-2005 03:01 PM
Re: script(1) no longer works??
ll -d /dev
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 06:39 PM
03-01-2005 06:39 PM
Re: script(1) no longer works??
That's ow it looks on one of my machines:
crw-rw-rw- 1 bin bin 16 0xffffff Feb 15 11:49 /dev/ptym/clone
so, just try:
mknod /dev/ptym/clone c 16 0xffffff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 07:14 PM
03-01-2005 07:14 PM
Re: script(1) no longer works??
----
I tried the mknod, but mknod seems to think the file already exists. Yet ll doesn't see it:
# ll /dev/ptym/clone
/dev/ptym/clone not found
# mknod /dev/ptym/clone c 16 0xffffff
mknod: File exists
# ll /dev/ptym/clone
/dev/ptym/clone not found
Any other suggestions? I'm really stumped by this one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 07:25 PM
03-01-2005 07:25 PM
Re: script(1) no longer works??
Just a thought:
# file /dev/ptym/clone
What does this return??
This is what i see...
# cd /dev/ptym/clone
# file clone
clone: character special (16/16777215)
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 07:28 PM
03-01-2005 07:28 PM
Re: script(1) no longer works??
/dev 555
/dev/ptym 755
/dev/ptym/clone 666
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 07:32 PM
03-01-2005 07:32 PM
Re: script(1) no longer works??
REgards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2005 08:54 PM
03-01-2005 08:54 PM
Re: script(1) no longer works??
/dev/ptym/ptyp0 not found
/dev/ptym/ptyp1 not found
/dev/ptym/ptyp2 not found
The above output is very strange, and, I think, very significant: You asked for a directory listing, specifying only a directory, and then it says that specific files don't exist in that directory, so what makes it think those specific files are (not) there?
I suspect filesystem corruption. Have you run fsck?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 11:07 PM
03-02-2005 11:07 PM
Re: script(1) no longer works??
# ll /usr/bin/script /usr/lbin/protect_pty
script should be:
# chown bin:bin /usr/bin/script
# chmod 555 /usr/bin/script
protect_pty should be:
# chown root:bin /usr/lbin/protect_pty
# chmod 4555 /usr/lbin/protect_pty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 09:03 AM
03-03-2005 09:03 AM
Re: script(1) no longer works??
All of the above perms were okay except for... for /dev/ptym:
It was (incorrectly):
drw-rw-rw- 2 bin tty 9216 Mar 1 19:01 /dev/ptym/
I've fixed it now:
drwxr-xr-x 2 bin tty 9216 Mar 1 19:01 /dev/ptym/
----
So now it works.... if I do it as 'root'.
But if I invoke script(1) as a mortal,
I get the following error:
xyz 274>script
Script started, file is typescript
script: Could not get slave pty name.could not reset pty ownership and access mode
xyz 275>
Any suggestions?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 09:20 AM
03-03-2005 09:20 AM
SolutionThe master pseudo terminal are /dev/ptym/pty[a-ce-z]* -- those appear to be okay. The slaves are /dev/pty/tty[a-ce-z]*. Man 7 pty and look under the 'FILES' section for all the device nodes to check. You might have missed some masters as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 09:22 AM
03-03-2005 09:22 AM
Re: script(1) no longer works??
mv /dev/ptym /dev/ptym.sv
insf -e -d ptym
now compare the perms of new devices in /dev/ptym/ to the old /dev/ptym.sv/...
-denver
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 09:45 AM
03-03-2005 09:45 AM
Re: script(1) no longer works??
The (second) problem was that the directory
/dev/pty was 666 instead of 755.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2005 09:46 AM
03-03-2005 09:46 AM