Friday, July 14, 2006

 

Samba mounting Encrypted Linux file from Windows host in Vmware


vi /etc/samba/smb.conf



[encrypted]
browseable = yes
comment = Encrypted FS on USB
writable = yes
locking = no
path = /encrypted
public = yes



mkdir /encrypted
mount -o umask=0 /dev/mapper/encrypted /encrypted/
/etc/init.d/samba start
smbpasswd -a knoppix

touch /encrypted/hello.txt

Go edit the hello.txt file in vmware windows My Network Places -> Workgroup computers

Verify that it has been changed

cat /encrypted/hello.txt

Thursday, July 13, 2006

 

Creating a encrypted patition visible from both windows and linux

Download and install uuid-dev, e2fsck and cryptsetup.


dd if=/dev/zero of=myencryptedfile.enc bs=1M count=20
losetup /dev/loop2 myencryptedfile.enc
cryptsetup -c aes -s 256 --verify-passphrase luksFormat /dev/loop2
cryptsetup luksOpen /dev/loop2 encrypted
mkdosfs /dev/mapper/encrypted
mount /dev/mapper/encrypted /mnt
ls /mnt
umount /mnt
cryptsetup luksClose encrypted
losetup -d /dev/loop2

This page is powered by Blogger. Isn't yours?