LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-10-2006, 11:06 AM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Question Stupid chmod tricks with Rox filer


Hey guys,

I have a directory structure with a bunch of directories and source files in those directories, with no filename extensions. I made the mistake of double clicking one in Rox which promptly sent the system into an unrecoverable, smoking tailspin as it tried to execute a few thousand lines of source as a shell script because everything in the directory had the executable bit set on. I had to power the machine off. Good ole Reiserfs- I didn't lose anything.

How do I fix this? I need executable turned on on directories, or I can't cd. But I want it turned off on files, these are source files. Is there a way to do a chmod to fix this? Or something else?

Thanks,
Rand
 
Old 08-10-2006, 11:20 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I wrote a script to use chmod to recursively change the permissions of files while maintaining the executable bit on the directories it recurses into. My problem was caused because i migrated all my data from FAT partitions when i made the grand switch =)

You can find the details of it here: http://www.kaear.co.uk/default.asp?pageID=33
And a direct link here: http://www.kaear.co.uk/linux/massfileset.sh

This will correct the problem, but won't stop it recurring (say if you copy stuff off a memory key regularly). If you go to Types in Rox options (right click --> options --> Types on left menu), you'll see a tickbox at the top: "Ignore eXecutable bit for known extensions". Ticking this will stop anything like you describe happening above.

Of course, the above is only relevant if you have file extensions on your source files. If I may ask, what source files have no extension?

- Piete.

PS: I hope there is enough clarity and DIRECT LINKS there for you.

PPS: The script has NOT been written exceptionally defensively, so I take no responsibility for misuse and/or loss of data.

PPPS: Seriously, it's not my fault if you don't follow instructions to the letter.
 
Old 08-10-2006, 11:50 AM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by piete
I wrote a script to use chmod to recursively change the permissions of files while maintaining the executable bit on the directories it recurses into. My problem was caused because i migrated all my data from FAT partitions when i made the grand switch =)
Ok, so the good news is that I didn't miss anything obvious. I thought that as soon as I wrote a script someone would point out that I could have issued a four character command and everything would have been fixed

Quote:
Originally Posted by piete
This will correct the problem, but won't stop it recurring (say if you copy stuff off a memory key regularly).
Understood, thanks.

Quote:
Originally Posted by piete
If I may ask, what source files have no extension?
It's some work I imported from another platform.

Quote:
Originally Posted by piete
PS: I hope there is enough clarity and DIRECT LINKS there for you.
LOL your answers are always complete and helpful, Piete. That wasn't directed at you. But people should realize that there's a lot going on in the world and not everybody is an expert in Linux, etc. What might be enough for one person wasn't enough for me in that case- which should have been obvious- because anyone who had to ask the question obviously had some gaps.

I guess I'm used to people coming from all different backgrounds so I try not to assume they know something. But that can also be a mistake.

Quote:
Originally Posted by piete
Seriously, it's not my fault if you don't follow instructions to the letter.
But what if I do...?

Thanks a lot,
Rand
 
Old 08-10-2006, 11:54 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Quote:

Quote:
Originally Posted by piete
Seriously, it's not my fault if you don't follow instructions to the letter.

But what if I do...?
Then I will take full credit for fixing your box =D

Take it easy,
- Piete.
 
Old 08-10-2006, 11:57 PM   #5
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
Quote:
If you go to Types in Rox options (right click --> options --> Types on left menu), you'll see a tickbox at the top: "Ignore eXecutable bit for known extensions". Ticking this will stop anything like you describe happening above.
i'm using rox-filer 2.3 and i don't find the the tick box in my options. all i see is mime types and themes. am i missing something? this has got my curiousity up now....lol
 
Old 08-11-2006, 05:44 AM   #6
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Bizarrely enough it seems as though I'm using 2.2.0 ... i'm pretty sure i've got 2.3 at work, and the same box is there *somewhere*, have a hunt around for it ... meanwhile, I shall think about upgrading!
 
  


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
Debian, ROX-filer and what else? BaptismOfFire Linux - Software 2 06-14-2005 04:18 PM
Rox-filer bug? iwen Slackware 5 04-15-2005 04:06 AM
Was rox-filer taken out of apt? Royle Debian 3 02-14-2005 08:59 PM
help installing rox-filer imagreg Debian 3 01-17-2005 01:30 AM
rox filer m4rqs Linux - Software 1 08-27-2002 09:08 AM

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

All times are GMT -5. The time now is 09:58 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