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]

 



Another "ah-ha" moment - thanks for the taking the
time.  All makes perfect sense now.

My scripts need sudo rights for other reasons (eg to
grep losetup -a) so there's no problem with using sudo
mount anyway.

I also notice a benefit of sudo mount: the filesystem
does not seem to have to be specified in the
commandline.

mount as sudo must somehow work this out for itself.

--- Christian Kujau <evil@xxxxxxxxxx> wrote:

> think about it: *any* user would be using "-o" then
> and doing perhaps
> nasty things. /etc/fstab is (hopefully) only
> writeable by root and *he*
> determines the -o(ptions) to mount a certain
> filesystem.
> 
> my "man 8 mount" says:
> 
> (iii) Normally, only the superuser can mount file
> systems.  However, when
>       fstab contains the user option on a line,
> anybody can mount the
>       corresponding system.
> 
> ...and when you "do not put the line in /etc/fstab",
> there is no "user"
> option in fstab any more - hence only the superuser
> can mount it.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
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