Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
задачка с правами каталогов и файлов (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Drew82
n00b
n00b


Joined: 08 Apr 2005
Posts: 30

PostPosted: Mon Nov 28, 2005 7:24 pm    Post subject: задачка с правами каталогов и фа Reply with quote

как в некоем каталоге с подкаталогами файлами внутри расставить права на все каталоги = 755, а на все файлы = 644?

Last edited by Drew82 on Wed Nov 30, 2005 12:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
viy
Veteran
Veteran


Joined: 03 Jul 2004
Posts: 1580
Location: Riga, Latvia

PostPosted: Mon Nov 28, 2005 8:46 pm    Post subject: Reply with quote

find <target_dir> -type d -exec chmod 755 '{}' ';'
find <target_dir> -type f -exec chmod 644 '{}' ';'
Back to top
View user's profile Send private message
Drew82
n00b
n00b


Joined: 08 Apr 2005
Posts: 30

PostPosted: Mon Nov 28, 2005 9:08 pm    Post subject: Reply with quote

благодарствую!

по Вашему варианту не заработало, а вот так все ок.

find . -type d -exec chmod 755 '{}' \;
find . -type f -exec chmod 644 '{}' \;
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Russian 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