HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Truly read-only viewer like more or vi?
Operating System - HP-UX
1833760
Members
2363
Online
110063
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
Forums
Discussions
Discussions
Discussions
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
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-25-2002 08:25 AM
06-25-2002 08:25 AM
Re: Truly read-only viewer like more or vi?
Martin,
I'm not a big fan of the default restricted shells - there are simply too many holes. There was once a project called osh ... ah, but it is long dead - and had holes, still.
Steven,
I like the idea of using lynx ... but this is a vast program, and may have undesirable options. I will investigate as I have time.
I'm not a big fan of the default restricted shells - there are simply too many holes. There was once a project called osh ... ah, but it is long dead - and had holes, still.
Steven,
I like the idea of using lynx ... but this is a vast program, and may have undesirable options. I will investigate as I have time.
Command-Line Junkie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2002 07:37 AM
06-27-2002 07:37 AM
Re: Truly read-only viewer like more or vi?
hai Danny
Lynx is a ocean.. if you are not familiar with that you might end up having more troubles...
you can get more or less the same functions using basic unix commands
regards
george
Lynx is a ocean.. if you are not familiar with that you might end up having more troubles...
you can get more or less the same functions using basic unix commands
regards
george
keep smiling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2002 05:17 AM
06-28-2002 05:17 AM
Re: Truly read-only viewer like more or vi?
Daniel,
two more notes:
1. In the example:
#!/usr/bin/ksh
cat $1 | SHELL="/dev/null" /usr/bin/more
You should be sure to use the full path name to /usr/bin/cat so that the script doesn't use $PATH to find it.
2. You should _never_ make a shell script SUID. Sorry for not making that clearer before. There are known problems in many versions of Unix (I don't know exactly which ones) with the handling of suid scripts. The program suidperl (sperl) is meant to address these issues, or you can make a simple compiled program with the same logic.
Still, there are no guarantees that any program you write will not have holes, no matter how short the program is. The programs you mention that have "way too many holes" were written by knowledgeable security people, but still they have holes. That's why it's best to use existing OS features whenever possible (such as permissions) to enforce your policies.
two more notes:
1. In the example:
#!/usr/bin/ksh
cat $1 | SHELL="/dev/null" /usr/bin/more
You should be sure to use the full path name to /usr/bin/cat so that the script doesn't use $PATH to find it.
2. You should _never_ make a shell script SUID. Sorry for not making that clearer before. There are known problems in many versions of Unix (I don't know exactly which ones) with the handling of suid scripts. The program suidperl (sperl) is meant to address these issues, or you can make a simple compiled program with the same logic.
Still, there are no guarantees that any program you write will not have holes, no matter how short the program is. The programs you mention that have "way too many holes" were written by knowledgeable security people, but still they have holes. That's why it's best to use existing OS features whenever possible (such as permissions) to enforce your policies.
- « Previous
-
- 1
- 2
- Next »
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP