Re: directory and file permission help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



John Doe sent a missive on 2010-02-08:

> From: adrian kok <adriankok2000@xxxxxxxxxxxx>
>> I move a zip file from window to linux but all permission of folder
>> and files are kept in 700 How can I change it one time? I don't need
>> to change directory under directory to change as folder as 755 and
>> files as 644
> 
> You could use find -type X (X = 'd' for directories and 'f' for files)

Indeed, not forgetting that you can use -exec option with find to do the
actuall change to the files/dirs 

I.e. for directories within the zip

Bash# find ./ -type d -exec chmod 755 {} \;





_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux