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 10-10-2003, 11:50 PM   #1
WoodyH
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake
Posts: 1

Rep: Reputation: 0
SSH hosts.deny file


Hello everyone. I currently have Mandrake Linux v9.1 installed with KDE.

Not sure if this info is needed for my question, but. When we installed the OS, we initially set the security to parinoid. Since then we have dropped it to high.

Now for the problem. Everytime the SSH server is restarted, it writes to the hosts.deny file:

ALL:ALL EXCEPT 127.0.0.1ENY


Why would it be doing this? We have taken the file permissions to read only and it still gets written to. I assume its because root is doing it. Does anyone know how to fix this problem?

I appreciate any and all help provided. Thank you.

Respectfully

WoodyH
 
Old 10-11-2003, 07:44 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Not sure if this info is needed for my question, but.
Yes, it's necessary to know. Whats that app again... It's Msec, innit? Or are you using something else, like Bastille?

Everytime the SSH server is restarted, it writes to the hosts.deny file
No, OpenSSH doesn't, it's either Msec, Bastille or whatever you're using.

Why would it be doing this?
Cuz translated it sez "connections restricted to the loopback device".

We have taken the file permissions to read only and it still gets written to.
That is a rather crude solution. IMHO you should look up the apps documents, check where you can customize behaviour, search the script for where/when/how it changes /etc/hosts.deny and then (probably) write a custom script to handle it or comment out the functionality. If you got ext2/3fs then you can also set the immutable bit on the file using "chattr", but you then will have to remember to always include checking TCP wrappers when troubleshooting network access problems wrt servers on the public interface.
 
  


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
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
ssh and /etc/hosts.all & deny tebucky Linux - Security 8 01-27-2005 05:23 PM
hosts.deny doesn't block an SSH attempt vmattila Linux - Security 4 11-14-2004 12:18 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 01:57 AM

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

All times are GMT -5. The time now is 04:34 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