You are not logged in.
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.
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
:shock:
They're supposed to be +x aren't they? :oops:
·¬»· i am shadowhand, powered by webfaction
Offline
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
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
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