View previous topic :: View next topic |
Author |
Message |
Drew82 n00b
Joined: 08 Apr 2005 Posts: 30
|
Posted: Mon Nov 28, 2005 7:24 pm Post subject: задачка с правами каталогов и фа |
|
|
как в некоем каталоге с подкаталогами файлами внутри расставить права на все каталоги = 755, а на все файлы = 644?
Last edited by Drew82 on Wed Nov 30, 2005 12:59 pm; edited 1 time in total |
|
Back to top |
|
|
viy Veteran
Joined: 03 Jul 2004 Posts: 1580 Location: Riga, Latvia
|
Posted: Mon Nov 28, 2005 8:46 pm Post subject: |
|
|
find <target_dir> -type d -exec chmod 755 '{}' ';'
find <target_dir> -type f -exec chmod 644 '{}' ';' |
|
Back to top |
|
|
Drew82 n00b
Joined: 08 Apr 2005 Posts: 30
|
Posted: Mon Nov 28, 2005 9:08 pm Post subject: |
|
|
благодарствую!
по Вашему варианту не заработало, а вот так все ок.
find . -type d -exec chmod 755 '{}' \;
find . -type f -exec chmod 644 '{}' \; |
|
Back to top |
|
|
|