- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to deny 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
08-06-2001 05:14 AM
08-06-2001 05:14 AM
I've edited /var/adm/inetd.sec to include the following line :
telnet deny pine
and then initialised the inetd daemon using inetd -c.
BUT when I try telnet to this server as the pine user, it STILL allows telnet access!
Does anyone know why?
Many thanks in advance :-)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 05:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 05:28 AM
08-06-2001 05:28 AM
Re: How to deny telnet access
/var/adm/inetd.sec is really for denying network access - via ip, not per user.
If you want to deny by user you will need to add some scripting to either /etc/profile or the users .profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 05:50 AM
08-06-2001 05:50 AM
Re: How to deny telnet access
The syntaxe of the file /var/adm/inetd.sec is as follow :
example :
telnetd denny 132.141.15.3
This will denny access to telnetd process by ALL connections comming from server identified by address 132.141.15.3.
You may filter the user that you want to denny access by codding in the /etc/profile file.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 05:58 AM
08-06-2001 05:58 AM
Re: How to deny telnet access
you may code in the /etc/profile file the following test :
if [ $LOGNAME = 'badUser' ]
then
exit 1
fi
I tried it and it works fine giving the following message :
Connection closed by foreign host.
Magdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 06:32 AM
08-06-2001 06:32 AM
Re: How to deny telnet access
echo "exit 1" > /usr/bin/false
chmod 555 /usr/bin/false
Modify the user's shell as /usr/bin/false.
The user will not be able to telnet but will still be able to ftp.
Hope this helps.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 08:48 AM
08-06-2001 08:48 AM
Re: How to deny telnet access
You can get it at
ftp://ftp.porcupine.org/pub/security/index.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2001 09:07 AM
08-06-2001 09:07 AM
Re: How to deny telnet access
Dening telnet access will need to be done through little scripting in /etc/profile file.
Alternatively change the user shell to /usr/bin/false to restrict user to only ftp.
inetd.sec file will help you to restict access by IP addresses/host names.
Thanks.
Prashant