LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-10-2004, 12:27 PM   #1
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
cdrom mp3's files executable why


im running slackware current my mp3 cdrom mounts all mp3's executable like this

-r-xr-xr-x 1 root root 3441528 1998-04-03 12:23 fadetoblack.mp3*
-r-xr-xr-x 1 root root 4240323 1999-10-30 11:49 falling_away_from_me.mp3*
-r-xr-xr-x 1 root root 5356765 2000-09-27 23:16 limp\ bizkit\ -\ my\ generation.mp3*

my fstab

/dev/hda7 swap swap defaults 0 0
/dev/hda6 / ext3 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/cdrom1 /mnt/cdrom1 iso9660 noauto,user,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/hda1 /mnt/hda1 ntfs ro,noauto,user,uid=1000,gid=100,umask=0227 0 0
/dev/hdb1 /mnt/hdb1 ntfs ro,noauto,user,uid=1000,gid=100,umask=0227 0 0
/dev/hdb1 /mnt/hdb5 ntfs ro,noauto,user,uid=1000,gid=100,umask=0227 0 0

do i need the noexec option? I want to be able to run progs from cdrom if need be
 
Old 06-10-2004, 12:53 PM   #2
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Then leave the permission rights alone... even though it says you can exicute an mp3.. the mp3 contains no header or any actul exicutible data.. so it's perfectly safe... on the other hand try copying 1 mp3 to your home folder and see if it has the same permissions if it doesn't then something is wrong with your install.. I would suggust a reinstall because who knows what else is also exicutible.
 
Old 06-10-2004, 02:49 PM   #3
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Original Poster
Rep: Reputation: 32
thanks I see that its the same on fedora.
 
Old 06-10-2004, 04:29 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
I would suggust a reinstall because who knows what else is also exicutible.
Don't be expeditive, it is normal behaviour in some case, for example file permission for photos from my numeric canon are all 755, and 755 too for files from macintosh data cds, I won't reinstall slackware for that !
 
Old 06-10-2004, 05:21 PM   #5
Cerbere
Member
 
Registered: Dec 2002
Location: California
Distribution: Slackware & LFS
Posts: 799

Rep: Reputation: 33
Depending on how you burned the CD (specifically how you created the ISO), that's perfectly normal. Check out the following from the mkisofs man page:
Code:
       -r     This is like the -R option, but file ownership  and
              modes  are  set to more useful values.  The uid and
              gid are set to zero, because they are usually  only
              useful  on  the  author's system, and not useful to
              the client.  All the file read bits are  set  true,
              so that files and directories are globally readable
              on the client.  If any execute bit  is  set  for  a
              file, set all of the execute bits, so that executa-
              bles are globally executable on the client.  If any
              search  bit  is set for a directory, set all of the
              search  bits,  so  that  directories  are  globally
              searchable  on  the  client.   All  write  bits are
              cleared, because the CD-Rom will be  mounted  read-
              only  in any case.  If any of the special mode bits
              are set, clear them, because  file  locks  are  not
              useful  on a read-only file system, and set-id bits
              are not desirable for uid 0 or gid 0.  When used on
              Win32, the execute bit is set on all files. This is
              a result of the lack of file permissions  on  Win32
              and  the  Cygwin  POSIX  emulation layer.  See also
              -uid -gid, -dir-mode, -file-mode and -new-dir-mode.
The relevant part here is the text which I emphasized.

Since CDs are usually intended to be platform independent, they have to be kept simple enough for windows systems to understand them.

Enjoy!
--- Cerbere

Last edited by Cerbere; 06-10-2004 at 05:23 PM.
 
Old 06-11-2004, 10:24 AM   #6
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Original Poster
Rep: Reputation: 32
I was wodering because i have rox-filer installed in fluxbox but i found the option that ignore's the executable bit for known file types. Im a noob lol.
 
Old 06-11-2004, 12:52 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You can always do TAB + ! to open little field in the bottom of the window and play with command instead of clickin', but for preview thundbail...it is out

Last edited by keefaz; 06-11-2004 at 12:55 PM.
 
  


Reply



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
Executable File from CDROM using Wine Questions? rohit-sk Linux - General 18 07-28-2005 12:14 PM
files are executable by default geomatt Linux - Newbie 2 12-13-2004 11:21 PM
Unmounting a cdrom inside an executable jshort Programming 1 04-09-2003 08:33 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 11:40 PM.

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