LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-27-2004, 04:51 AM   #1
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Rep: Reputation: 30
Files being made executable on Floppies etc


Any file I move to or create on a floppy or other removable medium is made executable, which is very irritating if only because the icon changes. I am sure I can put something in /etc/fstab to fix this but I am not sure what. Here is my fstab - can anyone advise please?

/dev/hda7 swap swap defaults 0 0
/dev/hda9 / ext3 defaults 1 1
/dev/hda8 /home ext3 defaults 1 2

/dev/hda1 /mnt/win-c vfat rw,exec,user,umask=000 0 0
/dev/hda5 /mnt/win-d vfat rw,exec,user,umask=000 0 0
/dev/hda6 /mnt/mdk ext3 defaults 1 2

devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

/dev/sr0 /mnt/CD iso9660 noauto,user,ro 0 0

/dev/fd0 /mnt/FD auto noauto,user,rw 0 0

/dev/hde1 /mnt/Card vfat noauto,user,rw 0 0

/dev/sda1 /mnt/USB vfat noauto,user,rw 0 0
 
Old 10-27-2004, 06:17 AM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Somehow that is the default behaviour of files on VFAT, FAT and FAT32 on Linux... don't ask me why though :shrug:
 
Old 10-27-2004, 10:50 AM   #3
Rashkae
Member
 
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
Re: Files being made executable on Floppies etc

Quote:
Originally posted by JohnKFT
Any file I move to or create on a floppy or other removable medium is made executable, which is very irritating if only because the icon changes. I am sure I can put something in /etc/fstab to fix this but I am not sure what. Here is my fstab - can anyone advise please?

/dev/hda7 swap swap defaults 0 0
/dev/hda9 / ext3 defaults 1 1
/dev/hda8 /home ext3 defaults 1 2

/dev/hda1 /mnt/win-c vfat rw,exec,user,umask=000 0 0
/dev/hda5 /mnt/win-d vfat rw,exec,user,umask=000 0 0
/dev/hda6 /mnt/mdk ext3 defaults 1 2

devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

/dev/sr0 /mnt/CD iso9660 noauto,user,ro 0 0

/dev/fd0 /mnt/FD auto noauto,user,rw 0 0

/dev/hde1 /mnt/Card vfat noauto,user,rw 0 0

/dev/sda1 /mnt/USB vfat noauto,user,rw 0 0
Fat / Vfat file systems do *not* have executable permission on individual files. Therefore, when linux mounts the file system, either all file are 'executable', or *no* files are executable. If you prefer no executables, (a good idea for security,) add the noexec option.

dev/fd0 /mnt/FD auto noauto,user,rw,noexec 0 0
 
Old 10-27-2004, 11:19 AM   #4
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 47
Re: Re: Files being made executable on Floppies etc

Quote:
Originally posted by Rashkae
Fat / Vfat file systems do *not* have executable permission on individual files. Therefore, when linux mounts the file system, either all file are 'executable', or *no* files are executable. If you prefer no executables, (a good idea for security,) add the noexec option.

dev/fd0 /mnt/FD auto noauto,user,rw,noexec 0 0
Hey Rashkae, that's really useful!

Thanks for sharing that info, I learned something new today.
 
Old 10-27-2004, 04:11 PM   #5
JohnKFT
Member
 
Registered: Aug 2003
Location: NW Scotland
Distribution: Slackware 10
Posts: 169

Original Poster
Rep: Reputation: 30
Thanks also from me. Not only do I now know how to fix the problem but I also understand why the problem occurs. You have opened up a whole new understanding of the interaction between these file systems. Thanks also to the chap who invented the internet - a very few years ago it would have taken me longer to walk up the road for a stamp than your helpful reply has taken, and even then I would not have known who to post the question to. Don't we live in exciting times?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run executable files? Kelley Linux - Newbie 34 07-06-2017 09:31 PM
Java executable Files John_Emad SUSE / openSUSE 11 06-22-2005 10:01 AM
Where's the executable? (made with QT3) rooman Programming 1 11-01-2004 02:44 PM
Converting perl files to executable mac files mrozkan Programming 0 04-16-2002 09:56 AM
Executable Files Acar Linux - General 1 02-22-2002 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration