[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cryptoloop as user?



Am Die, 2002-12-10 um 16.20 schrieb Rob Weir:
> On Mon, Dec 09, 2002 at 07:15:08PM +0100, ernst wrote:
> > Hi
> > 
> > I'm useing cryptoloop to protect my data on a ibmx20 laptop. Im running
> > 2.4.19 kernel with the cryptoloop and cryptoapi modules innstalled.
> > 
> > As root, I have created a file with dd, used blowfish as cipher and
> > mounted it trough loop0, so far so good.
> > 
> > But I am wondering if there is an easyer way to du this, I would like to
> > do this in bootup, as user.
> > 
> > The way I'm doint it now is (as root):
> > losetup -e blowfish -k 128 /dev/loop0 /usr/tmp/my_crypt_file
> > mount /dev/loop0 /home/ernst/mnt/my_crypt_file
> > chown -R ernst:users /home/ernst/mnt/crypt
> > 
> > Then I'm there, I can work on my docs as a user, but I'm wondering if
> > there is an easyer way of soing it?
> > 
> > To release this again I'm doing :
> > umount /dev/loop0
> > losetup -d /dev/loop0
> 
> There isn't really any way to delegate this sort of authority under
> Linux at the moment,

Yes there is. Edit your fstab and you are done.

/home/$USER/crypto0     /some/dir       reiserfs           \ 
defaults,noauto,loop,encryption=twofish,user    0 0

[...]

-- 

Matthias Hentges
[www.hentges.net] -> PGP + HTML are welcome
ICQ: 97 26 97 4   -> No files, no URLs

My OS: Debian Woody: Geek by Nature, Linux by Choice




Reply to: