Script to set up permissions
I needed some space in my /home and decided to move a whole tree of files to a FAT partition. However, today I decided to bring those files back to the Linux partition.
Now, here is the problem: all these files became set as "executable" (pdf, mp3, tex, and other formats) after returning to my home dir. This is very annoying because when I type "ls" in konsole, these files appear green, and it is really confusing (I use xterm and konsole a lot, and the colors have always been very meaningful).
If I try something as "chmod -x * -R", then I loose the right to enter in my own dirs and subdirs, and the files' permissions are not corrected because of this.
Does anybody know a way to do a "chmod -x -R", but only for files, not for the directories themselves (maybe a script that enters in each subdir and correct the permissions for the files only)??
Tks in advance
amwink
|