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!)
|