Difference between revisions of "Security"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
(Replaced content with "* encrypt a disk")
Line 1: Line 1:
= encrypted image as safe =
+
* [[encrypt a disk]]
Have aes and cryptoloop loaded
 
dd if=/dev/zero of=/save.img bs=1024k count=100
 
--> creates an image of 100 MB
 
 
 
losetup -e aes /dev/loop0 /save.img
 
you can delete this again with -d, but for a new access to loop0 you will need a reboot
 
--> assigns loop device and password to device
 
mkfs.ext3 /dev/loop0
 
--> formats the device with ext3
 
mount -o encryption=aes /safe.img /secret
 
--> mounts the image with password prompt
 
Or enter into /etc/fstab:
 
/safe.img /secret ext3 rw,user,loop=/dev/loop1,encryption=aes 0 0
 

Revision as of 08:11, 9 January 2011