LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   howto chowto change file permisions in multiplhange file permisions in multiple dirs? (https://www.linuxquestions.org/questions/linux-software-2/howto-chowto-change-file-permisions-in-multiplhange-file-permisions-in-multiple-dirs-402921/)

pingvina 01-13-2006 10:18 AM

howto chowto change file permisions in multiplhange file permisions in multiple dirs?
 
howto change file permisions in multiple dirs?

zhelezov 01-13-2006 10:31 AM

how much multiple? ;)

why don't you try recursively changing the permissions of the parent directories...and let RegEx help you! :)

haertig 01-13-2006 10:38 AM

Quote:

Originally Posted by pingvina
howto change file permisions in multiple dirs?

If you're talking about recursively going down through a directory ... something like:
Code:

find dirname -type f -print | xargs chmod 644
find dirname -type d -print | xargs chmod 755

The first will change only plainfile permissions, the second, directory permissions

pingvina 01-13-2006 03:10 PM

yes it is working... xargs rules

tnx


All times are GMT -5. The time now is 09:27 AM.