- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Launch the web browser when user telnet into the h...
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
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
тАО03-12-2001 06:50 PM
тАО03-12-2001 06:50 PM
Launch the web browser when user telnet into the host
Is it possible to write a script or program to launch a web browser with the specify url when a user telnet into a host.
I'm trying to prevent user to telnet to the host for security reason. User can only change their password through the url.
Thanks in advance,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 09:34 PM
тАО03-12-2001 09:34 PM
Re: Launch the web browser when user telnet into the host
You may wish to use the following as a template:
In the user .profile (if sh/bash/ksh),
===============================================
#!/sbin/sh
trap "" 1 2 3
lynx http://a.b.c.d/cgi-bin/acctmgt.cgi #replace with the appropriate URL
trap 1 2 3
logout
===============================================
This will launch the lynx text-based web-browser with the URL specified. Note however that you have to disable lynxexec to prevent the user from exiting to shell from lynx.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 11:11 PM
тАО03-12-2001 11:11 PM
Re: Launch the web browser when user telnet into the host
If your purpose is to limit your user's telnet functionality for changing password only, why not just replace their login shell field (last field in the /etc/passwd file) to "/sbin/passwd"?
~Philip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2001 11:39 PM
тАО03-13-2001 11:39 PM
Re: Launch the web browser when user telnet into the host
You can disallow shell escapes (ie. use of the ! exclamation mark), lynxexec or lynxprog G)oto's in lynx by running lynx with the options "-restrictions=shell"
ie. lynx -restrictions=shell http://a.b.c.d/cgi-bin/acctmgt.cgi
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2001 07:49 PM
тАО03-18-2001 07:49 PM
Re: Launch the web browser when user telnet into the host
Please advise where I can get the lynx and how to configure lynxexec ?
Rgds,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2001 08:01 PM
тАО03-18-2001 08:01 PM
Re: Launch the web browser when user telnet into the host
You can get lynx from:
http://hpux.cs.utah.edu/hppd/hpux/Networking/WWW/lynx-2.8.3/
You perform the restriction as a command-line option to lynx as indicated in my previous thread.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2001 09:16 PM
тАО03-18-2001 09:16 PM
Re: Launch the web browser when user telnet into the host
I have installed lynx but when I got error messages when I run it as follows:
lynx https://
error messages:
Alert!: This client does not contain support for HTTPS URLs.
Alert!: This client does not contain support for HTTPS URLs.
lynx: Can't access startfile https://chpwd.tp.edu.sg/
Should there be any modification required over the WEB page ?
Rgds,
YC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2001 09:26 PM
тАО03-18-2001 09:26 PM
Re: Launch the web browser when user telnet into the host
lynx does not support SSL access.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2001 11:38 PM
тАО03-18-2001 11:38 PM
Re: Launch the web browser when user telnet into the host
Lynx itself does not support SSL. However, you can compile lynx with SSLeay to provide SSL support.
The following URL shows the steps required in the compilation process:
http://www.ocf.berkeley.edu/~jeffwong/lynxstuff/SSL/index.html
Hope this helps. Regards.
Brainbench MVP for Unix Admin
http://www.brainbench.com