- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricting telnet to local host
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-18-2005 07:43 AM
03-18-2005 07:43 AM
Restricting telnet to local host
I've read as many of the other posts as I could on this subject but I can't find (or identify) anything that fits my specific application. I have a user that needs to telnet to a specific server (HP9000, HP-UX 11i). Once logged in, I want to prevent that one particular user from being able to again telnet or ftp to anything else. Mind, I'm concerned with all other telnet-able devices on my network, not just other UNIX hosts. In other words, I want to deny the ability to telnet out for this user only. How can I do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 07:55 AM
03-18-2005 07:55 AM
Re: Restricting telnet to local host
[[ ${logname} = "user_name" ]] && "echo logouot;exit 0"
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 07:59 AM
03-18-2005 07:59 AM
Re: Restricting telnet to local host
Another possiblity is (I haven't investigated this) changing the group permissions on the telnet and ftp executables such that he can't get to them -- probably not a very good solution, since he may be able to just get the executable elsewhere, etc etc... but...
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 08:25 AM
03-18-2005 08:25 AM
Re: Restricting telnet to local host
Your solution won't work with a Perle terminal server or an HP Jetdirect. I want this user to not be able to use the telnet command once he is logged in to this particular host.
Mic V:
I've never done an rsh before, but that idea may hold promise. I'll certainly look it up, but if you can give me the Condensed Version I'd sure appreciate it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 08:58 AM
03-18-2005 08:58 AM
Re: Restricting telnet to local host
difficult thing to do. So you might want to rethink
the whole issue and redefine your problem. One
possible solutions (ofcourse, you need to decide if
they solve your problem) I can think of is:
When this user logs into your server (let call it
server-A) and stays loged in, you could block all
out-going connections requests from server-A to all
other machines. Some other user can login into
server-A, but can't telnet to a 3rd server from
server-A. If this solution is acceptable, then you
could use IPFilter to achieve this.
- Biswajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 09:06 AM
03-18-2005 09:06 AM
Re: Restricting telnet to local host
variant of posix shell), make a directory full of commands they can use,
and edit the login environment to make use of it. Sounds easy, but it
can get quite complicated if it's more than a fairly trivial login.
Of course, you do NOT want to give them "vi" or anything else with
a shell escape.
The man page really is useful (sorry, not telling you to RTFM! :-):
http://www.docs.hp.com/en/B2355-60103/sh-posix.1.html
Some other interesting reading:
- http://newfdawg.com/SHP-RestShell
- http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=191408
- http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=737077
HTH.
Mic