You are not logged in.

#1 2005-08-17 04:07:43

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Oops. ( All directories are +x / Calling script gods)

I don't know what I did exactly, but at some point I must have accidently made every directory on my computer executable. Although it's not really an issue for me, it's not terriffic. roll

Anyone know how to make a bash script that will recurse through every directory and 'chmod -x' them all? (Minus ones that aren't supposed to be, if it would cause issues somewhere. [ /usr/bin? :? ])

Thanks !


·¬»· i am shadowhand, powered by webfaction

Offline

#2 2005-08-17 04:11:11

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: Oops. ( All directories are +x / Calling script gods)

:shock:  lol  lol  lol  lol  lol  lol  lol

They're supposed to be +x aren't they? roll :oops:


·¬»· i am shadowhand, powered by webfaction

Offline

#3 2005-08-17 06:09:16

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Oops. ( All directories are +x / Calling script gods)

lol!


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#4 2005-08-17 08:41:42

cmp
Member
Registered: 2005-01-03
Posts: 350

Re: Oops. ( All directories are +x / Calling script gods)

how about

find / -type f -exec chmod -x {} ; 

but you have to change the mod of the directories you want to keep yourself. as this runs chmod -x on all files on your system.

Offline

#5 2005-08-17 12:06:33

kth5
Member
Registered: 2004-04-29
Posts: 657
Website

Re: Oops. ( All directories are +x / Calling script gods)

oooohhh.... this is the zone where normal things do not happen very often... hrhr  :twisted:


I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell

Offline

Board footer

Powered by FluxBB