Difference between revisions of "Security"

From Linuxintro
imported>ThorstenStaerk
(New page: = encrypted image as safe = 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 (mit -d kan...)
 
imported>ThorstenStaerk
Line 5: Line 5:
  
 
  losetup -e aes /dev/loop0 /save.img
 
  losetup -e aes /dev/loop0 /save.img
(mit -d kann dieses wieder geloescht werden, fuer einen neuen Zugriff auf
+
you can delete this again with -d, but for a new access to loop0 you will need a reboot
  loop0 wird dann aber ein reboot benoetigt)
+
--> assigns loop device and password to device
--> weist dem Image ein loop-device und das Passwort zu
 
 
  mkfs.ext3 /dev/loop0
 
  mkfs.ext3 /dev/loop0
 
--> formats the device with ext3
 
--> formats the device with ext3
 
  mount -o encryption=aes /safe.img /secret
 
  mount -o encryption=aes /safe.img /secret
--> mountet das Image mit Passworteingabe
+
--> mounts the image with password prompt
Oder in die /etc/fstab eintragen:
+
Or enter into /etc/fstab:
  /safe.img /geheim ext3 rw,user,loop=/dev/loop1,encryption=aes 0 0
+
  /safe.img /secret ext3 rw,user,loop=/dev/loop1,encryption=aes 0 0

Revision as of 13:29, 27 March 2010

encrypted image as safe

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