Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
changing only folder file permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
blendmaster
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 196

PostPosted: Tue Sep 14, 2004 1:31 am    Post subject: changing only folder file permissions Reply with quote

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
View user's profile Send private message
Kirigoe
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2003
Posts: 147
Location: concrete hut, sweden

PostPosted: Tue Sep 14, 2004 6:41 am    Post subject: Reply with quote

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
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Tue Sep 14, 2004 1:18 pm    Post subject: Reply with quote

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.
Code:

chmod -R +X

_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
blendmaster
Apprentice
Apprentice


Joined: 02 May 2004
Posts: 196

PostPosted: Wed Sep 15, 2004 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
revertex
l33t
l33t


Joined: 23 Apr 2003
Posts: 806

PostPosted: Wed Sep 15, 2004 5:00 am    Post subject: Reply with quote

i'm sure your sister will find this much funny than m$paint!

http://www.newbreedsoftware.com/tuxpaint/

Code:
emerge tuxpaint


and have a lot of fun!!
Back to top
View user's profile Send private message
oot
n00b
n00b


Joined: 03 Nov 2003
Posts: 49

PostPosted: Thu Sep 16, 2004 5:49 pm    Post subject: Reply with quote

Sounds like a job for the Midnight Commander! <--lots o pomp

emerge -v mc

and kiss those keyboard callouses g-bye.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum