Re: all files are executable in vfat

Nerijus Baliunas (
Tue, 25 Sep 2001 19:01:15 +0200 (EET)

On Tue, 25 Sep 2001 12:47:46 -0400 (EDT) Alexander Viro <> wrote:

AV> > $ ls -l ls
AV> > -rwxrwxrwx 1 nerijus nerijus 45724 Rgs 25 18:12 ls
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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at