encrypted file system
hi!
i want to have a file which i can mount via an encrypted loop device and make a file system on it.
so i followed the steps:
# dd if=/dev/zero of=file bs=100M count=10
# losetup -e blowfish /dev/loop/0 file
Password:
# mkfs.reiserfs /dev/loop0
# mount /dev/loop0 /mnt/efs
and it works. but! now i want to place a line in fstab so a regular user can mount /mnt/efs, enter the password, and read or write to it.
so i added this line to fstab:
/part/file /mnt/efs auto loop,encryption=blowfish,noauto,user 0 0
i do (as a regular user):
$ mount /mnt/efs
Password:
then i do:
$ touch /mnt/efs/test
touch: cannot touch `/mnt/efs/test': Permission denied
the mount command shows it was mounted rw. what must i add to fstab in order to make it work ?
thanx !
|