- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting telnet allow configuration
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
02-20-2005 04:58 PM
02-20-2005 04:58 PM
Setting telnet allow configuration
Tia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 05:13 PM
02-20-2005 05:13 PM
Re: Setting telnet allow configuration
Use inetd.sec file to do this. For example,
--/etc/inetd.sec--
telnetd allow
refer inetd.sec man page more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 05:22 PM
02-20-2005 05:22 PM
Re: Setting telnet allow configuration
check the man pages of inetd.sec..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 06:49 PM
02-20-2005 06:49 PM
Re: Setting telnet allow configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 06:53 PM
02-20-2005 06:53 PM
Re: Setting telnet allow configuration
Try copying the example from /usr/newconfig/var/adm/inetd.sec.
If you are feeling adventurous, you may also try TCP wrappers - downloadable from software.hp.com.
All the best - Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 07:00 PM
02-20-2005 07:00 PM
Re: Setting telnet allow configuration
If it does not exist, make a new file by editting #vi /var/adm/inetd.sec then following the format: service allow|deny ip-address
i.e: telnet deny 192.168.1.1
HMT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 07:24 PM
02-20-2005 07:24 PM
Re: Setting telnet allow configuration
What is your OS's platform?
For HP-UX, you can modify the /var/adm/inetd.sec file to allow with IP can telnet to your server.
For SUN or AIX, it is difference.
Regard,
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 09:36 PM
02-20-2005 09:36 PM
Re: Setting telnet allow configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 09:41 PM
02-20-2005 09:41 PM
Re: Setting telnet allow configuration
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2005 10:08 PM
02-20-2005 10:08 PM
Re: Setting telnet allow configuration
I post the inetd.sec file, you can download it.
The right permission is:
-r-------- 1 root sys
After modify you just restart the inet daemon:
#inetd -c
Goodluck
HoangChiCong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2005 01:11 AM
02-23-2005 01:11 AM
Re: Setting telnet allow configuration
Step one - Create a file named /etc/telnet.allow. Include logins that require telnet access.
Step two - Add the following to /etc/profile:
--------------------------------------
#
# Configure telnet access - root can always telnet to the server
#
if [ -f /etc/telnet.allow ] ; then
user_id=${LOGNAME}
telnetused=`/usr/bin/ps -f | grep "[t]elnetd" | grep -v "grep" | wc -l`
if [ -s /etc/telnet.allow ] ; then
userallowcount=`grep "^$user_id$" /etc/telnet.allow | wc -l`
else
userallowcount=0
fi
if [ $telnetused -gt 0 -a $userallowcount -eq 0 -a "Xroot" != "X${LOGNAME}" ] ; then
DATEE=`/usr/bin/date +%Y%m%d`
TIMEE=`/usr/bin/date +%H%M%S`
NDNAME=`/usr/bin/uname -n`
BASENM=`/usr/bin/basename $0`
echo "ERMS1311: Error - Telnet access is not allowed... Terminating"
if [ -f /usr/bin/logger ] ; then
/usr/bin/logger -t "login" "ERMS1311: Error - Telnet access for ${LOGNAME} is not allowed... Te
rminating..."
fi
echo "ERMS1001: Error - YOU DO NOT HAVE TELNET ACCESS TO THIS SERVER"
echo "SESSION TERMINATING IN 10 SECONDS"
echo "${DATEE} : ${TIMEE} : ${NDNAME} : ${user_id} : ERMS1311 Telnet access not allo
wed" >> /var/adm/security/telnet_deny.log
sleep 10
exit 99
fi
fi
--------------------------------------
It might not be pretty but it works. Failures are logged to /var/adm/security/telnet_deny.log