- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disable telnet for a user
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
12-14-2004 07:43 AM
12-14-2004 07:43 AM
disable telnet for a user
I want to disable telnet access to a perticular user but this user should be able to login via SSH. How do I achieve this?
Thanks in advance for your help!!
Raji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 07:57 AM
12-14-2004 07:57 AM
Re: disable telnet for a user
Else, you will have to install tcp wrappers and make use of /etc/hosts.allow and /etc/hosts.deny files.
If you have HP ssh installed, it has tcp wrappers in built. (You can prepare file /etc/hosts.deny with entry ALL:ALL to test it)
, prepare /etc/hosts deny file and deny user access to telnet.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 08:10 AM
12-14-2004 08:10 AM
Re: disable telnet for a user
Can you please give me syntax to create the /etc/hosts.deny file? If I put
deny:ALL as per you does it deny everyone telnet access? I just want to deny telnet access to a perticular group/user.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 08:27 AM
12-14-2004 08:27 AM
Re: disable telnet for a user
Allows you to block certain users by ip address.
Otherwise you can code the /etc/profile or the .profile to check the login type and reject.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 08:29 AM
12-14-2004 08:29 AM
Re: disable telnet for a user
If you have SSH configured right, then the password is no longer needed and if the user does not know the password of the host they are connecting to, they can't use telnet.
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 06:02 PM
12-14-2004 06:02 PM
Re: disable telnet for a user
One way of doing it is to put some code in /etc/profile to see if the parent of the shell is 'telnetd' daemon and quit if it is. You obviously have to put some checks in there as you may not get the information first hand.
Otherwise, implement telnet through tcp_wrappers and adjust hosts.deny file. You can download tcp_wrappers from HP's porting site.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 07:35 PM
12-14-2004 07:35 PM
Re: disable telnet for a user
/var/adm/inetd.sec is able to block access for telnet and rlogin base on IP ( unable to block connection base on userID
2, You should try to user tcp_wrappers for performing you idea.
tienna.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2004 09:44 PM
12-14-2004 09:44 PM
Re: disable telnet for a user
Disabling telent for a perticular user can be done as follows.
1) put "exit 0" code in .profile of the user.
2)Change the shell of the user to something like
/usr/bin/false
(This will disable ftp access also. To enable only ftp not telnet , add the shell i.e./usr/bin/false to the /etc/shells file)
There may be other ways..
SSH no idea..
Hope this is helpful
Rgds
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2004 11:32 AM
12-15-2004 11:32 AM
Re: disable telnet for a user
if [ "$LOGNAME" == "joeuser" -a -z "$SSH_TTY" ]; then logout; fi