- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disalbing Telnet for specific users
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
04-16-2003 08:45 AM
04-16-2003 08:45 AM
I fear that asking them nicely not to use telnet will have a limited effect.
In a nutshell, what I need to do is do is disable telnet for all users except 'menu'. I've looked into slapping some script to kick them off into /etc/profile but I fear that will take effect when they login through ssh as well. I'm unable to find a way to tell the difference between a telnet session and a ssh session in a shell script so I can terminate the connection appropriatly.
Thanks in advance (and please excuse my abhorrent spelling)
Bruce
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 08:50 AM
04-16-2003 08:50 AM
Re: Disalbing Telnet for specific users
In a script pick up the process id and its parent id and if parent telnd then exit.
Just an idea.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 08:51 AM
04-16-2003 08:51 AM
Re: Disalbing Telnet for specific users
You get an A+ for spelling! Not a single mistake.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 08:51 AM
04-16-2003 08:51 AM
Re: Disalbing Telnet for specific users
you can configure /var/adm/inetd.sec file to allow only the specific ipadress to access ftp,telnet,rlogin etc. You can configure for entire subnet or perticular ip.
Good luck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 10:28 AM
04-16-2003 10:28 AM
Re: Disalbing Telnet for specific users
Being relatively new to Unix I could be wrong on this, but couldn't you use TCP Wrappers and then deny all in the hosts.deny file.
You could have the telnet process running but no one could access it.
Regards,
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 11:15 AM
04-16-2003 11:15 AM
Re: Disalbing Telnet for specific users
Although tcp_wrappers and inetd.sec will allow or restrict networks and hosts, I do not believe they will restrict users on networks or hosts, so as I understand, they won't work for his needs.
HTH,
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2003 11:39 AM
04-16-2003 11:39 AM
SolutionYes, you CAN do this with tcp_wrappers.
First - set up the hosts.deny as follows
telnetd : ALL
Then - set up the hosts.allow as follows
telnetd : menu@ALL
Of course this does nothing about FTP, rlogin, finger, etc. But you can tailor the files to cover those as well or use inetd.sec to limit those in addition. And you could limit the user menu to a specific host or subnet
telnetd : menu@host1
telnetd : menu@128.1.1
HTH,
Jeff
P.S. Sorry Kel...had to set the record straight.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 06:12 AM
04-17-2003 06:12 AM
Re: Disalbing Telnet for specific users
I don't use tcp_wrappers all that much.
Can you use user@ with inetd.sec?
Never seen it in the man pages, didn't think you could.
If not, I think it should be added, that's a usable tool.
Thanks for the info.
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2003 06:20 AM
04-17-2003 06:20 AM
Re: Disalbing Telnet for specific users
AFAIK only tcp_wrappers has this functionality - you're correct, inted.sec does not.
Rgds,
Jeff
P.S. The new hat looks good on you. Purple must be your color.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 01:13 PM
06-12-2003 01:13 PM
Re: Disalbing Telnet for specific users
I loaded the tcp_wrappers for 11.0 from the "dspp" page. Seems to have loaded ok.
However, I cannot get the /etc/hosts.allow or the /etc/hosts.deny to act as I wish. I have read the hosts_access man pages...I thought things were pretty clear, but, I can't seem to deny telnetd to a specific user.
This is my entry in the hosts.deny (I have no host.allow):
telnetd: myuserid@ALL
(I'm really looking for a function like the /etc/securetty --- the root only deny mechanism).
Any help would be appreciated.