Re: all files are executable in vfat

Nerijus Baliunas (nerijus@users.sourceforge.net)
Tue, 25 Sep 2001 19:01:15 +0200 (EET)


On Tue, 25 Sep 2001 12:47:46 -0400 (EDT) Alexander Viro <viro@math.psu.edu> wrote:

AV> > $ ls -l ls
AV> > -rwxrwxrwx 1 nerijus nerijus 45724 Rgs 25 18:12 ls
AV>
AV> So use the right option for that - umask=111 and there you go.

Actually I just few minutes ago thought about umask - yes, it helps,
thank you. But now I cannot enter any directory as regular user.

AV> noexec doesn't (and shouldn't) do anything about mode. Yes, VFAT (along
AV> with explicit mechanism for doing what you want to do) used to have a
AV> bug in noexec handling. And that's a bug - plain and simple. Try it
AV> on any other UNIX _or_ other filesystem on Linux.

Because this bug was fixed I thought something broke instead...

AV> -o noexec means "execve() fails regardless of file permissions". If you
AV> want "give all regular files rw-rw-rw-" - VFAT has option for that:
AV> umask.

Regards,
Nerijus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/