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

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



Phil H wrote:
--- Matthias Schniedermeyer wrote:

So, either in the mount line or in /etc/fstab, I

must


tell mount what filesystem type is to be mounted.

Have you tried the "-s" option?



Thanks - now I have. This works if the loop was formatted with minix - mounts ok (I'm not sure why anuone would want ot format with minix, but there you go). mtab reports the permissions that are specified in the mount line for fat, although these have been ignored - the mount point directory has inherited root permissions from sudo mount.

But mounting an ext2-formatted loop device fails.

I put the s option in from of the others as follows:

sudo mount -s -o [other options....]

Is that correct? It didn't seem to work if I put it in
with the fat options.

It was just a shot into the blue. Seams it doesn't work.



When you use 2 diffrent mount-points you can use 2 diffrent lines in fstab. Then a mount <first> || mount <second> mounts whatever succeeds. (Or just do mount <first> ; mount <second> and after that look which succeeded)


If you want to hide the diffrent mount-points from whetever wants to access the filesystem you can use "new" mount-points and create symlink to the "old" place (don't forget to remove the dir before), after the mount to the successfull mount. (Or --bind mount the mount-point of the successfull-mount over the "old" mountpoint. In this case the directory must stay)



--
Real Programmers consider "what you see is what you get" to be just as
bad a concept in Text Editors as it is in women. No, the Real Programmer
wants a "you asked for it, you got it" text editor -- complicated,
cryptic, powerful, unforgiving, dangerous.


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