Re: tips per uso dm-crypt e gpg
cmq ora vi pasto il mio script bash, vedete se ci sono errori :D
grazie
if [ "$UID" != "0" ]; then
echo -e "\n[!] Sorry but.. you must be r00t to execute this script..\n"
exit 1;
fi
#variabili
REAL_PARTITION=/mnt/hda7
REAL_DEVICE=/dev/hda7
USBPEN_DIR=/mnt/sda1
USBPEN_DEVICE=/dev/sda1
KEYGPG=$USBPEN_DIR/private/babalua.gpg
NOME_DEVICE_CRITTATO=home
UTENTE_GPG=ospite
#fine variabili
mount $USBPEN_DEVICE $USBPEN_DIR
if [ ! -f $KEYGPG ]; then
echo -e "\n[!]Sorry Usb Pen not mounted or key not found\n"
exit 1;
fi
#nel caso il dispostivo è gia montato (ftp21 rulez)
umount $REAL_PARTITION 2>/dev/null
cryptsetup remove $NOME_DEVICE_CRITTATO 2>/dev/null
su $UTENTE_GPG -c "gpg --decrypt $KEYGPG" | cryptsetup -h ripemd160
-s 448 -c blowfish create $NOME_DEVICE_CRITTATO $REAL_DEVICE
mount /dev/mapper/$NOME_DEVICE_CRITTATO $REAL_PARTITION
umount $USBPEN_DIR
echo ""
echo ":: CHECK THE PARTITION STATUS ::"
echo ""
mount
2005/9/7, Felipe Salvador <felipesalva@tiscali.it>:
> Alle 11:55, mercoledì 7 settembre 2005, Marco Nenciarini ha scritto:
> > Un sistema che inietta acidi e solventi vari nebulizzati direttamente
> > dentro l'HD in rotazione è senzaltro più rapido e meno ingombrante... :D
>
> Ragazzi, una curiosità, un maniete di quelli potenti, tipo quello di un bell
> altoparlante, oppure un elettromaniete (di quelli che ti fanno costruire alle
> media:D) non basterebbe?:)
>
> --
> Felipe
>
>
--
-Linux user #372824
-GPG Pubkey ID E85789E2
-FPR 7CD5 2F8E 005B D835 FE83 D456 23B8 7F28 E857 89E2
-Leggere mentre si e' in bagno e' considerato multitasking?
-sopadj1.netsons.org :: www.olografix.org :: www.pescaralug.org
Reply to: