From: Steve G <linux_4ever@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Vfat increases file permissions
Date: Wed, 11 Feb 2004 14:44:33 -0800 (PST) [thread overview]
Message-ID: <20040211224433.92148.qmail@web9602.mail.yahoo.com> (raw)
Hello,
I am wondering about something. Why is it that when I mount a
vfat floppy disk and copy a file to the disk, it becomes
executable?
[root@linux fd_test]# umask 277
[root@linux fd_test]# touch test.txt
[root@linux fd_test]# ls -l test.txt
-r-------- 1 root root 0 Feb 11 17:20 test.txt
[root@linux fd_test]# cp test.txt /mnt/floppy/
[root@linux fd_test]# ls -l /mnt/floppy/test.txt
-rwxrwxrwx 1 root root 0 Feb 11 17:20
/mnt/floppy/test.txt
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.
Is the Linux implementation interpreting something that doesn't
actually exist in the original?
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.
Thanks,
Steve Grubb
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
next reply other threads:[~2004-02-11 22:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-11 22:44 Steve G [this message]
2004-02-12 1:52 ` Maciej Zenczykowski
2004-02-12 5:53 ` Valdis.Kletnieks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040211224433.92148.qmail@web9602.mail.yahoo.com \
--to=linux_4ever@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®