View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 01-28-2004, 02:58 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
htpasswd gets corrupted regularly

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,

Old 01-28-2004, 03:18 AM   #2
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,


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 05:38 PM
Regularly switching between monitors ianunderwood SUSE / openSUSE 2 08-04-2005 12:34 PM
Run fsck regularly? macnut Linux - General 1 12-27-2004 07:36 AM
Why are tcp services falling over regularly? swellmaps Linux - Networking 0 10-28-2003 05:40 AM
telnet and ftp dies regularly goutambaul Linux - Newbie 0 04-30-2003 06:32 AM

All times are GMT -5. The time now is 11:41 AM.

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