View Single Post
  #3  
Old March 6th, 2005, 11:02 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: OT: Server Security Crap

cp /dev/null error_log

Its an old admin trick. You cant delete a log while its open and being written to. You would have to shut down the server to rotate the files. But you can write to it. Doing a copy of /dev/null actually copies a zero byte file to it which basically restarts it on the fly.

A lot of backup programs copy the file to a backup version then "copy" a zero byte file over it
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote