Re: Vfat increases file permissions

From: Valdis . Kletnieks
Date: Thu Feb 12 2004 - 00:55:25 EST


On Wed, 11 Feb 2004 14:44:33 PST, Steve G <linux_4ever@xxxxxxxxx> said:
> In the DOS world, not every file is executable. It uses the file
> extention to decide if the file is executable. A text file is not
> implicitly executable unless it has a .bat file extention.

Welcome to Linux, where files actually have permissions bits. Of
course, the vfat filesystem doesn't have those bits, so we have to
invent something. Sanest thing to do is just pretend all vfat
files are mode 0777...

> I am concerned about world writeable, executable files existing
> on my floppies or USB devices that are formatted vfat. This seems
> like a security concern to me.

mount -o noexec,nodev,nosuid /dev/floppy /mnt/floppy


Attachment: pgp00000.pgp
Description: PGP signature