LinuxQuestions.org
Review your favorite Linux distribution.
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 09-29-2008, 07:05 PM   #1
Daravon
Member
 
Registered: Mar 2006
Posts: 170

Rep: Reputation: 15
Selling a computer...how to clean ALL personal info?


I'm looking at selling a laptop with ubuntu installed on it. Very little actual files are on the SSD...I keep everything on flashdrives. But still, there is the matter of bookmarks, autocomplete, browsing history, stored passwords, etc.

Could somebody please tell me what all I should do to make sure all my personal info is off the computer, before I just hand it to someone else? How can I avoid missing some obscure stored information that could give the computer's new owner access to my information?
 
Old 09-29-2008, 07:12 PM   #2
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
Download DBAN and run it on your drives. It uses a very secure security wiping of your drives and it is free.
 
Old 09-29-2008, 07:15 PM   #3
Daravon
Member
 
Registered: Mar 2006
Posts: 170

Original Poster
Rep: Reputation: 15
I cannot wipe the drives. If I could, I would just use shred, since I have an ext2 filesystem. I advertised the computer with heavily tweaked (for eeePC) ubuntu already installed.

I thought about removing /home/chaz (my home folder) and then making a random /tmp file and dd'ing it full of zeros till the drive was full.

But then I'm not sure how I or my customer can log back in then. If I just remove the home directory when the computer restarts it will recreate it. That means my user, chaz, and my password must be stored elsewhere other than /home. How can I remove the user, and then create a new user?

Last edited by Daravon; 09-29-2008 at 07:32 PM.
 
Old 09-30-2008, 03:31 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Most of your personal information will be in your home folder. So if you delete your home folder's contents, stuff like bookmarks, cookies, documents is gone. You could then set up a new account for the new owner (and transfer sudo privileges to him). Then you could boot a live CD/USB, copy the disk's contents to some other box via SSH, zero the drive's partitions (including swap, if any), and format and copy the contents back. There might be locations outside your home folder which you'll want to clean up, such as Squid caches, etc. Make sure you do all your cleanups before you zero.

Last edited by win32sux; 09-30-2008 at 03:33 AM.
 
Old 09-30-2008, 03:52 AM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Aside from cleaning out 'home', you may have passwords and account information in configuration files in /etc.

Boot from a live CD; then you can fill space with garbage from /dev/urandom.
 
Old 09-30-2008, 05:33 AM   #6
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
If you need to keep the data on there, you'll have to manually remove all identifying data (your user account, home dir, passwords, and anything which may have got anywhere else), and then backup the DATA (not the filesystem) with tar (not dd) to somewhere else. This will only copy the *file* data (contents, filenames, directory structure), but not the remnants of deleted files, journal etc. which is what you need to remove.

Then properly shred/DBAN the drive and restore the backup onto the clean drive.

Obviously, it's a good idea to have a backup of the original drive too (probably as a DD image) so that you can restore the compuer to the original state if you mess up and miss something.

"How can I avoid missing some obscure stored information that could give the computer's new owner access to my information?"

If you're giving them a computer which you have to manually clean but leave the filesystem intact, then you can't. Programs can end up storing data just about anywhere - core dumps, swap space, log files... you can easily miss one of those places. That's why companies don't try to "sanitise" a working machine, they just securely wipe and then rebuild from scratch.
 
Old 09-30-2008, 06:02 AM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Are you sure using DBAN or shred on an SSD is a good idea?

I would think that on an SSD the most sane approach would be to just zero once.

@AuroraCA: What kinda tweaks does this install have? How hard is it for you to zero the drive and perform a fresh install for the new owner? This would probably be your safest bet, as you wouldn't have doubts in the back of your mind after turning the computer over to him.

Last edited by win32sux; 09-30-2008 at 06:07 AM.
 
Old 10-01-2008, 04:40 AM   #8
Roger Wada
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
Lightbulb

Have you tried re-installing Windows XP and reformatting the drive and not trying everything in Linux?
If you are selling your PC, it would be better selling it as a running Windows machine instead...
 
Old 10-01-2008, 07:33 AM   #9
racracracrac
Member
 
Registered: Sep 2008
Posts: 44

Rep: Reputation: 15
sudo find / -uid NNN -type f | less
sudo find / -uid NNN -type f | while read filename ;do shred "$filename" ;done
(replace NNN with the uid of your user.)

Change the passwords on any OTHER computer, if it has the same passwords.

Last edited by win32sux; 10-08-2008 at 05:32 PM. Reason: Removed spammed link.
 
  


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
keeping the computer clean sycamorex General 12 07-18-2007 11:15 AM
Personal Finance App that can download info from banks? cwainright Linux - Software 1 10-06-2005 04:01 PM
9.1 personal update CD info? 44179 SUSE / openSUSE 4 02-07-2005 06:09 PM
SUSE 9.1 Personal, Can't Network with WinXP Computer Mrrrr. Nice Guy Linux - Wireless Networking 3 11-20-2004 12:12 PM
Editing personal info cman2k LQ Suggestions & Feedback 1 04-07-2002 10:33 AM

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

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