LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   files are executable by default (https://www.linuxquestions.org/questions/linux-newbie-8/files-are-executable-by-default-266121/)

geomatt 12-13-2004 09:22 PM

files are executable by default
 
This is probably a dumb question with a (hopefully) simple solution. Whenever I copy new files onto my computer, from a cd or usb drive for example, they end up as executable and I am constantly having to run chmod to fix that for image files and things that shouldn't be executable. I am using Slackware 10 with fluxbox as my wm and Rox Filer for a file manager. Or is this an fstab issue? Here's mine just in case:


Code:

/dev/hda5        swap            swap        defaults        0  0
/dev/hda3        /                ext2        defaults        1  1
/dev/hda6        /home            ext2        defaults        1  2
/dev/hda1        /mnt/windoze    ntfs        ro,umask=0      0  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,users,ro  0  0
/dev/fd0          /mnt/floppy      auto        noauto,owner    0  0
devpts              /dev/pts        devpts      gid=5,mode=620  0  0
proc                /proc            proc        defaults        0  0

/dev/external  /mnt/external    ext2        noauto,users,rw  0  0
/dev/hde1        /mnt/flash      auto        noauto,users    0  0
/dev/usbkey    /mnt/usbkey      vfat      noauto,users,rw  0  0


Cheers!
-geomatt

adamwenner 12-13-2004 10:55 PM

i believe this is a problem with the umask, but does it really matter whether the files permissions set it to be executable

if this is really a problem, open a terminal and type in umask 122, then copy the files using that terminal using the cp command

i still dont know why it matters whether they are executable or not, but w/e

--adam

geomatt 12-13-2004 11:21 PM

Thanks for the response. I know it kind of seems like a silly issue, but it seems to matter for Rox filer - I dunno if you are familiar with it, but it requires that file associations be spelled out manually and then refuses to open executable files in the specified program. So if I associate .jpg files with Gimp, for ex., it'll only open them in Gimp if they are non-x.

I could just ditch Rox, but it is lightweight and has some other things I like.

I'll go read up on umask.

-geomatt


All times are GMT -5. The time now is 01:48 PM.