- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pty access mode error
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
Discussions
Forums
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
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
тАО08-28-2007 04:01 PM
тАО08-28-2007 04:01 PM
I have accidentally issued a 'chmod -R 755 *' from the root directory of a HPUX version 11 server. Although I tried to change back some of the system files permission, I'm not sure if the revert is clean. For now I encountered an error in running the following command - 'script /tmp/test.txt', and the error is as follow:
"Script started, file is /tmp/test.txt
could not set pty ownership and access mode
Script done due to signal 15, file is
/tmp/test.txt
could not reset pty ownership and access mode"
May I know how should I reverse the change in a clean manner and how to overcome the above error?
Appreciate your kind guidance and thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 04:25 PM
тАО08-28-2007 04:25 PM
SolutionVerify permission and ownership on /usr/bin/script and /usr/lbin/protect_pty are correct. They should be:
$ ls -l /usr/bin/script /usr/lbin/protect_pty
-r-xr-xr-x 1 bin bin ... /usr/bin/script
-r-sr-xr-x 1 root bin ... /usr/lbin/protect_pty
If permission or ownership is incorrect, then it should be fixed by executing as root:
# chown bin:bin /usr/bin/script
# chmod 555 /usr/bin/script
# 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
тАО08-28-2007 07:12 PM
тАО08-28-2007 07:12 PM
Re: pty access mode error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 09:04 PM
тАО08-28-2007 09:04 PM
Re: pty access mode error
I would really consider restoring an ignite backup - this is the fastest and most secure variant.
To check/set the mode of files created by 'swinstall', look at the man page of 'swverify' for a use of the options
-x check_permissions=true
-x fix=true
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2007 09:22 PM
тАО08-28-2007 09:22 PM
Re: pty access mode error
Thank you all for your guidance. The script problem is resolved now. Guess I'll have to set back the permission manually by comparing with another system as I do not have an ignite backup done on this server.
Thanks again and have a good day.