Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-13-2004, 09:22 PM   #1
Registered: Mar 2004
Location: PA
Distribution: Slackware 12.0
Posts: 315

Rep: Reputation: 30
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:

/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

Old 12-13-2004, 10:55 PM   #2
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Rep: Reputation: 32
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

Old 12-13-2004, 11:21 PM   #3
Registered: Mar 2004
Location: PA
Distribution: Slackware 12.0
Posts: 315

Original Poster
Rep: Reputation: 30
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.



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
Java executable Files John_Emad SUSE / openSUSE 11 06-22-2005 10:01 AM
Changing the default open action for an executable file nitrambass Member Intro 1 06-22-2004 03:09 PM
KDE: Default Executable File Icon DavidMD Linux - Newbie 4 05-27-2003 05:02 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:21 AM.

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