LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 01-28-2004, 03:58 AM   #1
sukebe
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
htpasswd gets corrupted regularly


Hello,
my flat-text htpasswd file gets corrupted around every 10 days.
I've also tried the file as a dbm file, which did not resolve the problem.

My site also gets brute-forced heavily.

Is it possible that the brute-force attacks are corrupting the file? I heard that Linux will throttle back resources when the processor is on a heavy load, which might result in the corruption.

Other than that, I can only figure that the file is not always flocked when a routine is writing to the file, which I'm researching now.

Typically, the file gets truncated at some random position in the file.

thanks for any ideas,

Gordie
 
Old 01-28-2004, 04:18 AM   #2
BlurredWeasel
Member
 
Registered: Oct 2003
Distribution: RH9
Posts: 38

Rep: Reputation: 15
Couple of quick ideas - try making it read only to EVERYBODY (so permissons of 444) - so that nobody can change it...this is assuming your web page doesn't change it. Second is to possibly use a different form of authentication - such as php (+mysql as needed) - it is a mite bit slower, but you'll be waiting for user input either way.

Have fun,
Chris
 
  


Reply


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
ultra 20 regularly locks up cold babyphil Solaris / OpenSolaris 3 11-20-2005 06:38 PM
Regularly switching between monitors ianunderwood Suse/Novell 2 08-04-2005 01:34 PM
Run fsck regularly? macnut Linux - General 1 12-27-2004 08:36 AM
Why are tcp services falling over regularly? swellmaps Linux - Networking 0 10-28-2003 06:40 AM
telnet and ftp dies regularly goutambaul Linux - Newbie 0 04-30-2003 07:32 AM


All times are GMT -5. The time now is 07:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration