LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-17-2008, 05:16 PM   #1
mithos
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Unhappy how do i delete history on OpenSUSE 10.3


i'm having a hard time finding a way to delete the history of recently opened files, folders and documents for security reasons. till now, all i could find were these scripts that helped me in some ways, but i still haven't deleted my main problem above... these are the scripts i found:


########################################################################

this one is helped me delete more sensitive data from my drive: ->

The following script erases personal data such as cookies, cache, temporary, and history items in Suse 9.3. It isn't complete, but it does a nice job. It is also fairly simple and well commented to ease extension of the script.

CODE

#!/bin/bash
# cleanup
# cleanup bash script written to remove private data in Suse 9.3 by anthro398.
# See
# The next line sets the variable LOCAL_USER to the enviromental variable $USER. $USER will
# be expanded to the name of the user running the script. To run this script as root for a
# user you'll need to set LOCAL_USER to the username of the target user.

LOCAL_USER="$USER"

# The following assignment uses the rm, or remove command with the
# recursive and force flags. For more secure deletion install wipe
# from " " and change "rm -rf " to "wipe -frsd ". Please notice the space
# following the last flag. It is necessary for this script to execute properly.

REMOVE="rm -rf "

# The following block assigns files and folders to the $FILES
# variable to be removed. Add to or remove from this list following the
# pattern.

FILES="/home/$LOCAL_USER/.mplayer/gui.pl
/home/$LOCAL_USER/.mplayer/gui.history
/home/$LOCAL_USER/.mplayer/gui.url
/home/$LOCAL_USER/.mozilla/default/*.slt/Cache
/home/$LOCAL_USER/.mozilla/default/*.slt/cookies.txt
/home/$LOCAL_USER/.mozilla/default/*.slt/history.dat
/home/$LOCAL_USER/.mozilla/default/*.slt/downloads.rdf
/home/$LOCAL_USER/.mozilla/firefox/*.default/Cache
/home/$LOCAL_USER/.mozilla/firefox/*.default/Cache.Trash
/home/$LOCAL_USER/.mozilla/firefox/*.default/cookies.txt
/home/$LOCAL_USER/.mozilla/firefox/*.default/downloads.rdf
/home/$LOCAL_USER/.mozilla/firefox/*.default/history.dat
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Temp
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Cookies
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/History
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Recent
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Temp
/home/$LOCAL_USER/.cxoffice/dotwine/fake_windows/Windows/Temporary Internet Files
/home/$LOCAL_USER/.opera/cache4
/home/$LOCAL_USER/.opera/download
/home/$LOCAL_USER/.opera/images
/home/$LOCAL_USER/.opera/download.dat
/home/$LOCAL_USER/.opera/cookies4.dat
/home/$LOCAL_USER/.nautilus/metafiles
/home/$LOCAL_USER/.thumbnails
/home/$LOCAL_USER/.xine/xine-ui_old_playlist.tox
/home/$LOCAL_USER/.bash_history
/home/$LOCAL_USER/.recently-used
/home/$LOCAL_USER/.adobe/Acrobat/7.0/Cache/cookies.txt
/home/$LOCAL_USER/.adobe/Acrobat/7.0/Cache/Search70
/home/$LOCAL_USER/Incomplete
/home/$LOCAL_USER/.Azureus/torrents
/home/$LOCAL_USER/.kde/share/apps/kaffeine/playlists
/home/$LOCAL_USER/.kde/share/apps/kcookiejar
/home/$LOCAL_USER/.kde/share/apps/RecentDocuments/
/home/$LOCAL_USER/.java/deployment/cache/javapi/v1.0/tmp
/home/$LOCAL_USER/.java/deployment/cache/tmp
/home/$LOCAL_USER/.limewire/Cookies.dat
/tmp/kde-$LOCAL_USER
/home/$LOCAL_USER/.local/share/Trash/files
/home/$LOCAL_USER/.local/share/Trash/info"

# This is the statement that actually deletes the above files and directories. It says,
# for each file in the above list execute the command given in the $REMOVE variable.

for file in $FILES
do
$REMOVE+$FILES
done
exit 0


Issues:

Recent files list in xine/kaffeine are not deleted. (Not sure where they're stored)

Extension ideas:

Add cp commands for things like bookmarks for back ups
Add symbolic link in /home/$USER/bin/
Add icon to Suse menu to run scipt on click
Add /tmp/ folder to file list and run on shutdown

#######################################################################

this other one helped me out a bit, but not much: ->

Script to remove sensitive information on your computer
I have created a script to remove sensitive information such as caches and trash using the wipe program to securely delete the files.

the program 'wipe' must be installed in order for this script to work

Code:

sudo apt-get install wipe

So far, the script only works with gnome and firefox caches. if anybody has any suggestions on other directories or files that should also be wiped, please comment in this thread and I will add it and post a final script in this thread.

Also, this script is geared for Ubuntu (K,X) so I don't know what it would do with other distros.

Code:

# Privacy cleaning script
# Requires program 'wipe' to be installed.



# Thumbnails and recently open files list
echo "Wiping Gnome thumbnails, recently used lists and Trash."
cd ~
wipe -r -f .thumbnails
wipe -r -f .recently-used
wipe -r -f .recently-used.xbel

# Trash
wipe -r -f .Trash/*

# External Trash such as on thumb drives
# uses a quick wipe so it doesn't flog flash drives as badly.
echo "Wiping Trash files on external drives."
wipe -r -f -q /media/*/.Trash*

# Search Indexes
echo "Wiping Beagle search index."
wipe -r -f .beagle

# GIMP
echo "Wiping recently used documents in any version of Gimp."
cd ~
wipe -r -f .gimp*/documents

# Firefox
echo "Wiping Mozilla history, cookies and cache."
cd ~
wipe -r -f .mozilla/firefox/*.default/Cache
cd ~
wipe -r -f .mozilla/firefox/*.default/history.dat
cd ~
wipe -r -f .mozilla/firefox/*.default/formhistory.dat
cd ~
wipe -r -f .mozilla/firefox/*.default/cookies.txt

##########################################################################

the first site helped me out deleting more sensitive data from my drive, but i went to check my recently opened documents and nothing x_x

i loaded my terminal and downloaded the wipe program and i also used the yast software manager to download the program wipe and it's already installed.

can anyone can help me out with this headache ? i just want to learn how to delete those histories of recently opened documents.

thanks ^^
 
Old 06-17-2008, 06:04 PM   #2
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
Have you thought about creating a separate user account?

Have you tried just right-clicking the "recently opened" menue... maybe there's an option there.

Last edited by oskar; 06-17-2008 at 06:07 PM.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot delete expired principal from kerberos system, how delete principals in kerber sarajevo Linux - Security 0 10-19-2007 11:23 AM
Is it easy to delete openSuse? sixsidepentagon Linux - Newbie 7 09-08-2007 04:56 PM
cannot delete drive from root desktop - cannot mount usb flash drive - openSuSE 10.2 bluecog6 Linux - General 6 01-29-2007 03:18 PM
Download history and copy history? inverted.gravity Linux - Newbie 1 02-21-2006 12:31 PM
delete konqueror history ? qwijibow Linux - Newbie 1 08-22-2003 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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