- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /usr/bin/pg - without shell access
Operating System - HP-UX
1753863
Members
7765
Online
108809
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО06-08-2001 11:00 AM
тАО06-08-2001 11:00 AM
HP-UX 10.20...I run a database application which makes use of the /usr/bin/pg command, to display text files. Some of the unix-savvy users may discover that they can use ! to drop out of the software and get unix access.
Is there a way to disable this in /usr/bin/pg, or is there a supported replacement?
Is there a way to disable this in /usr/bin/pg, or is there a supported replacement?
fmartin@applicatorssales.com
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2001 11:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2001 11:19 AM
тАО06-08-2001 11:19 AM
Re: /usr/bin/pg - without shell access
Hi Fred:
One way around this is to make the application the default shell in /etc/passwd. Then, if the user is doing 'pg' (or 'more', etc.) and they attempt to "shell-out", they will simply spawn another instance of the application.
...JRF...
One way around this is to make the application the default shell in /etc/passwd. Then, if the user is doing 'pg' (or 'more', etc.) and they attempt to "shell-out", they will simply spawn another instance of the application.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-08-2001 11:25 AM
тАО06-08-2001 11:25 AM
Re: /usr/bin/pg - without shell access
Hi again Fred,
I put my thinking cap on and I have another idea. You could replace /usr/bin/pg with the less command (binary) available from:
http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/less-358/
If you then set an environment var LESSSECURE=1
(in /etc/profile) the shell escape is removed.
Actually less is quite handy in that your users could then move bidirectionally within the text file.
Food for thought,
Clay
I put my thinking cap on and I have another idea. You could replace /usr/bin/pg with the less command (binary) available from:
http://gatekeep.cs.utah.edu/hppd/hpux/Gnu/less-358/
If you then set an environment var LESSSECURE=1
(in /etc/profile) the shell escape is removed.
Actually less is quite handy in that your users could then move bidirectionally within the text file.
Food for thought,
Clay
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP