Erasing logs/Clearing Cache
How can I delete my own information from my computer of a day's work.
For example, I reckon, bash stores some "history" of commands, firefox cookies and many other programs other stuff. I want to clean it all, after ending each session, including logs. Is this even possible? |
Firefox is easy.
From within Firefox:
Bash history can be erased with: Code:
history -c |
Thanks, what other logs can there be stored on a linux system?
|
You can remove logs from /var/log/ or edit /etc/logrotate.conf to rotate your logs daily and not keep any old logs. I would advise against either option though. If you have a problem the logs can be very helpful in resolving the problem.
|
There's more logging at the network, system and user level. Like wit_273 already said you should not want to remove logging at the system level: not only can it hamper solving problems but for instance cleaning out wtmp (which certain crackers would do) skews your auditing. (And while you may be able to control LAN logging you certainly won't be able to control WAN logging if any.) As for the user part the Firefox approach only works with some apps. Others may store configuration and previously opened files history in one or more files and they don't necessarily need to be plaintext. Luckily the user part can easily be solved by yourself: just create a new profile then checksum it before using. After you used the account and logged out again, checksum everything again. That'll display all alterations but it's up to you to mark them as (not) suspicious.
Once paranoia sets in you might wonder why you aren't running a distro or at least the account strictly from RAM... |
Quote:
I was also considering removing the writing head of a HDD ... |
Why not remove the HDD altogether and run from a Live CD?
That way no information would be modified. |
Quote:
|
Quote:
Quote:
|
Modify this script by adding to OBJECT variable any files or directories you want to remove. Run any time you want to clean private data.
Code:
# Remove files/directories |
@SaraiKhan
Why are you so paranoid? You can delete cookies and histories and logs from your computer, but your ISP will be logging everything you read, post or email, and there is nothing you can do about that. |
Quote:
But yeah, I'm with unSpawn's comment in post #5. At this level of paranoia, you shouldn't be using the HDD at all. If you don't like live CDs cuz the speed sucks, then use a ramdisk-based distro. Or like unSpawn hinted at, at least use a ramdisk for the account you are paranoid about. I'd suggest running the whole thing from RAM without swap. But if you need swap, you should definitely encrypt it with a random key each time. |
Quote:
I am all for freedom, privacy and non-intrusion from governments. But SaraiKhan has a linux login & password that gives him / her some reasonable security. Why isn't that sufficient? |
Quote:
Quote:
|
win32sux is right. I do not want people gaining access to my hdd. The user/password scheme might not be sufficient for that. I considered encrypting my entire hdd, or at least the partition that root runs on. Also ... how safe is TOR?
P.S. How do I checksum the entire user profile as unSpawn mentioned? |
All times are GMT -5. The time now is 04:36 AM. |