- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricting Rlogin and Telnet access
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-24-2005 08:09 PM
04-24-2005 08:09 PM
Can anyone advise what would be the easiest way to restrict users other than root and a selected amount of users using rlogin and telnet.
Kind Regards
Debbie
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2005 08:19 PM
04-24-2005 08:19 PM
SolutionCheck this faq.
http://www.interex.org/pubcontent/enterprise/jul01/09uxqa.html
I need more access and security features on my system but can't go to a Trusted System. What can I do to control login features?
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2005 08:27 PM
04-24-2005 08:27 PM
Re: Restricting Rlogin and Telnet access
to restrict telnet: use tcpwrappers or just add a exit 0 to the user's shell.
to restrict rlogin: use .rhosts and hosts.equiv file
or another method if the user is associated to their workstations, u may deny access in /var/adm/inetd.sec
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2005 09:44 PM
04-24-2005 09:44 PM
Re: Restricting Rlogin and Telnet access
For example to deny telnet based login then,
if [[ $USER = "denyuser" ]]
then
ps | grep 'telnetd
if [[ $? -eq 0 ]]
then
echo "Access denied to denyuser"
sleep 2
fi
fi
You have to use array to handle user list and checking with index.
You can not use /var/adm/inetd.sec file for this bcas it is for controlling IP / Hostname based.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2005 11:01 PM
04-24-2005 11:01 PM
Re: Restricting Rlogin and Telnet access
Create two groups. To this groups add the users to which you want to give rlogin & telnet access. Say for example.
vi /etc/group
...
...
...
telgrp::600:root,debbie,joseph,deepak,muthu
rloggrp::601:root,debbie,joseph,deepak,muthu
-r-sr-xr-- 1 rloggrp bin 36864 Nov 14 2000 /usr/bin/rlogin
-r-xr-xr-- 1 telgrp bin 106496 Nov 14 2000 /usr/bin/telnet
Give execute permission for this group only.
Cheers
Deepak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2005 07:39 PM
04-25-2005 07:39 PM
Re: Restricting Rlogin and Telnet access
For Quick reference:
If you wan to denie by IP. You use /var/adm/inetd.sec
login deny 10.0.0.7 # block IP 10.0.0.7 to access via rlogin
Telnet deny 10.0.0.7 # block IP 10.0.0.7 to access via Telnet
If you wanna to denie by user ID, you must download TCP Wrapper and Install.
refer to these link (search by keyword TCP Wrapper)
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=53458
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=798601
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=373226
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2005 08:29 PM
04-25-2005 08:29 PM
Re: Restricting Rlogin and Telnet access
Much appreciated.
Regards
Debbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2005 09:13 PM
04-25-2005 09:13 PM
Re: Restricting Rlogin and Telnet access
Sreejith M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2005 02:28 AM
04-26-2005 02:28 AM
Re: Restricting Rlogin and Telnet access
https://payment.ecommerce.hp.com/portal/swdepot/try.do?productNumber=B6849AA
I'm curous why you're resticting non-root from just telnet and rlogin. Normally, one restricts root-telnets to avoid cleartext root logins (and exposing the password) vs. non-root accounts. If your system is not for general login, then I'd expect you'd also want to restrict other account access as well, like ftp, ssh, and the other r-services, for example. If the latter is the case, there are some other settings you may consider.
-Robert