LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-28-2004, 02: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, 03: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



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

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

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