Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: blanking disk of linux appliance
Date: Mon, 14 Jan 2013 12:23:18
Message-Id: 201301141222.43708.michaelkintzios@gmail.com
In Reply to: [gentoo-user] OT: blanking disk of linux appliance by Adam Carter
1 On Monday 14 Jan 2013 02:11:32 Adam Carter wrote:
2 > shred and dd available, but not srm etc
3 >
4 > I want to remove the user account info before the device is returned, but
5 > dont want to cripple the device. Filesystem is ext3 with default mount
6 > options, which implies its mounted with the default data=ordered, and
7 > according to the docs "In both the data=ordered (default) and
8 > data=writeback modes, shred works as usual"
9 >
10 > Would these steps be effective?
11 > - set root pw back to installation default
12 > - manually create copies of passwd and shadow (named passwd2 shadow2, NOT
13 > by copying files then deleting extra lines) containing only the default
14 > installation entries
15 > - shred /etc/passwd /etc/shadow
16 > - mv passwd2 and shadow2 to passwd and shadow
17 > - dd if=/dev/zero of=/blah (to blank all spare blocks on fs, dd will bail
18 > out once full. Will it miss info from non-fully allocated blocks?)
19 > - rm /blah
20
21 Sounds good, but you would also need to shred -z -u /home/user files just in
22 case some private files are still in there? Also, where is mail stored?
23 --
24 Regards,
25 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature