Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-12-2003, 01:53 AM   #1
Registered: Dec 2002
Posts: 74

Rep: Reputation: 15
How to restrict only one user can use telnet in /etc/hosts.deny?

I used Redhat 8.0 with tcp_wrapper , now I want to configure the file /etc/hosts.allow or /etc/hosts.deny to achive only one ip can use in.telnetd , so I edited the file /etc/hosts.deny added the following line

in.telnetd : ALL EXCEPT

and left the file /etc/hosts.allow blank
but the result was I couldn't telnet the computer , why?
please help me. I had read the redhat reference guide .
Old 02-12-2003, 04:07 AM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
first, remove the entries in /etc/hosts.deny and /etc/hosts.allow so you can check that your telnet service is indeed working properly

if it is working then:


in.telnetd:ALL EXCEPT

should work. check it locally first:

telnet localhost

- ur firewall ruleset
- if can reach your server

Old 02-12-2003, 08:19 PM   #3
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
thanks born4linux I make it


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 10:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 04:52 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 02:57 AM
How to use hosts -.allow and -.deny? dragonflyer Linux - Newbie 2 05-28-2001 09:05 PM
hosts.deny 98steve600 Linux - General 1 01-10-2001 08:39 PM

All times are GMT -5. The time now is 02:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration