LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-14-2007, 05:03 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
DenyHost locked me out. How to create exceptions?


I can't explain it, but somehow DenyHost has locked me out of my computer. I can still access it locally, but every time I clear the /etc/hosts.deny ip address, DenyHost fills it back up. How do I remove my ip address from the hosts.deny list and not have DenyHost add it back in? I've tried commenting it out but DenyHost is too smart!
 
Old 03-14-2007, 05:16 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You should be adding your IP to the hosts.allow file. That supersedes anything in hosts.deny.
 
Old 03-14-2007, 05:51 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Duh! I should have thought of that. You're a genius! Works like a charm

Last edited by Micro420; 03-14-2007 at 05:55 PM.
 
Old 03-15-2007, 06:39 AM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Actually I do have one more question, namely what distro are you using? I've seen a couple of other threads with a similar problem (the system is modifying hosts.deny), and I'm wondering if it is distro specific.
 
Old 03-15-2007, 07:14 AM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
You also have to restart sshd otherwise the changes won't be taken in account.
 
Old 03-31-2007, 12:10 PM   #6
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Quote:
Originally Posted by Hangdog42
Actually I do have one more question, namely what distro are you using? I've seen a couple of other threads with a similar problem (the system is modifying hosts.deny), and I'm wondering if it is distro specific.
This is on an Ubuntu 6.10 distro.
 
  


Reply



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
How to chown with exceptions? Andriy Linux - Newbie 12 12-13-2006 09:35 AM
firewall exceptions Murdock1979 Linux - Networking 3 05-05-2006 07:42 AM
Exceptions bianchi Programming 1 11-17-2005 08:36 PM
Regarding Exceptions eshwar_ind Programming 1 05-03-2005 12:23 PM
exceptions of Python~ black Programming 2 09-09-2002 05:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:01 PM.

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