Re: How to access loop-aes mounted vfat filesystem as non-root user- help required!

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

 



Thanks again Matthias! I've had success at last (!)
by putting the options in the mount line (not fstab)
as follows):

sudo mount -o
loop,noatime,noauto,user,exec,fmask=133,dmask=022,uid=1001,gid=50,encryption=aes256
/dev/fd0 /home/dsl/crypt1

I never thought I'd see the day!

BUT 

1. I still can't get mount to work here as a non-root
user.

> I'd guess your mount-command misses the SUID-Bit.
> 
> ls -la /bin/mount
> -rwsr-xr-x    1 root     root           84888 Mar 23
> 12:58 /bin/mount

Unfortunately, no.  ls -la /bin/mount shows exactly
these same permissions including the SUID-bit.
So at present I still can't mount a loop device
without being root.

2. And fstab options do not appear to be read by
mount:

I've changed the fstab line to:
/dev/fd0 /home/dsl/crypt1 vfat
noatime,loop,encryption=aes256,noauto,user,exec,fmask=133,dmask=022,uid=1001,gid=50
0
In theory mount should read in all the options from
this line from /etc/fstab, yes?
But sudo mount /dev/fd0 /home/dsl/crypt1 yields (you
can hear the floppy drive working):
"mount: you must specify the filesystem type"
So I do:
sudo mount -t vfat /dev/fd0 /home/dsl/crypt1 yields
the error message:
mount: wrong fs type, bad option, bad superblock on
/dev/fd0,
       or too many mounted file systems

While not writing the options to fstab is hardly an
issue for a livecd boot - I'd need to restore this
line before each mount anyway (so why bother?) - I'm
now curious as to WHY it doesn't work.

Any more ideas?

I've installed gnu-utils in case damnsmalllinux's
Busybox mount (base system) was the problem, but it
makes no difference whatsoever.  Gnu-utils apparently
has mount version mount-2.11x.

> A mixture of subtle differences in your distro
> paired with a little bit of missing experience. :-)
> 
Without doubt a good deal of the latter!..:=)


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new Resources site
http://smallbusiness.yahoo.com/resources/

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux