[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re : Mounting [CD/VFAT] with noexec



Hi,
    I guess my previous message was a bit hasty(mode=666 and mode=444).
I got a chance to _really_ check out the problem only last weekend.
I tested it(browsing) on a CHIP CD with the KDE filemanager.
    A file is taken as an executable if any-one (user,group or other)
have execute permissions on it. So, the obvious solution was to give
read-write(or read only) perms. to everybody. But, it does not seem to work. 
After a bit of
further testing, I found out that the mode bits work according to the manual 
only if the first
digit of the 3 digits is a zero(ie. mode=0xx). So for our purpose,
mode=044(read perms for group and others) or mode=066 (read/write for group 
and
others) works( This has been -->tested<-- ). But, if the highest octal digit 
is set, the perms. go all haywire. I thought this
was a CD only problem. But, VFAT filesystems also support mode=xxx while 
mounting. So, I tried it and (surprise!surprise!) it does not seem to give a 
damn. While browsing the files on C:, I have to copy it away to /tmp, change 
perms. and read.
So, there is a bug somewhere! Now, is it in mount, the file-system 
drivers(Kernel?!!) or in mount. There also exists a definite possibility 
that I do not understand my filesystems properly.
Bye,
Vimal


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Please do not post HTML email to this mailing list.  HTML mails will be
thoroughly ignored and derisively sniggered at in private.

------------------------------