View previous topic :: View next topic |
Author |
Message |
blendmaster Apprentice
Joined: 02 May 2004 Posts: 196
|
Posted: Tue Sep 14, 2004 1:31 am Post subject: changing only folder file permissions |
|
|
on my familys computer, i was checking through peoples home directories.for some reason i don't recall, i did a "chmod 755 -R *" at the base home directory of everyone. then, i noticed everything was green (meaning executable) in the output of ls so i did a "chmod 644 -R *" instead. but now, as the folders don't have an executable bit, they won't run properly in the graphical file manager. is there any way to add the executable bit to just folders and do it recursively? "chmod 755 -R */" won't work.
also, offtopic, but can anyone send me the mspaint.exe from their windows install? my 11 year old sister wants it or somthing like it and i have yet to find a native paint clone. _________________ shuttle sn25p
2.6.12-gentoo-r10 in 64bit
amd64 3500+
geforce 6600gt |
|
Back to top |
|
|
Kirigoe Tux's lil' helper
Joined: 10 Jan 2003 Posts: 147 Location: concrete hut, sweden
|
Posted: Tue Sep 14, 2004 6:41 am Post subject: |
|
|
you should be able to do something like this for your directories:
Code: | find . -type d |xargs chmod 755 |
this will use "find" to find all directories and pipe the result to xargs to chmod them. please note that the dot after find is the directory to start in and of course the dot means "current directory". also please be careful, i'm not 100% this will work.
you can download a zipped package with mspaint.exe (from my windows 2000 install) here: http://downshift.org/temp/mspaint.zip
hope it helps!
~ kiri _________________ + adopt an unanswered post today!
+ kimono network monitor
+ downshift.org |
|
Back to top |
|
|
ronmon Veteran
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Tue Sep 14, 2004 1:18 pm Post subject: |
|
|
Reading man pages isn't a lot of fun, but it can be enlightening. From 'man chmod':
Quote: | execute only if the file is a directory or already has execute permission for some user (X) |
Note the upper case 'X'. Something like this will do it.
_________________ Ask Questions the Smart Way - by ESR |
|
Back to top |
|
|
blendmaster Apprentice
Joined: 02 May 2004 Posts: 196
|
Posted: Wed Sep 15, 2004 2:32 am Post subject: |
|
|
ronmon: the +X was the key. thanks!
Kirgoe: as i tried ronomon's idea first I didn't try yours. with your paint from windows, it doesn't seem to work. wine complains about some missing library. don't worry about it though. _________________ shuttle sn25p
2.6.12-gentoo-r10 in 64bit
amd64 3500+
geforce 6600gt |
|
Back to top |
|
|
revertex l33t
Joined: 23 Apr 2003 Posts: 806
|
|
Back to top |
|
|
oot n00b
Joined: 03 Nov 2003 Posts: 49
|
Posted: Thu Sep 16, 2004 5:49 pm Post subject: |
|
|
Sounds like a job for the Midnight Commander! <--lots o pomp
emerge -v mc
and kiss those keyboard callouses g-bye. |
|
Back to top |
|
|
|