[WBEL-users] chmod question

Jesus Aneiros Sosa aneiros@finf.ucf.edu.cu
Sun, 24 Oct 2004 10:54:08 -0500 (EST)


Hi,

I think this is not possible with only chmod but you could use find in 
combination with chmod

find / -type d -exec chmod 640 \{\} \;

You could use -ok instead of -exec to ask for a confirmation :)

Best regards, Jesus.

On Sun, 24 Oct 2004, Plug N Play wrote:

> Good day to all,
> 
>  
> 
> Here’s a quick question, how can I change the permission of the main
> directory including
> 
> Its subdirectory recursively without affecting the permission on the files.
> 
>  
> 
> Command chmod 640 –R * will not do since it changes everything including the
> files
> 
>  
> 
> Thank you and more power!
> 
>  
> 
> Marc
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.782 / Virus Database: 528 - Release Date: 10/22/2004
>  
> 
> -- 
> Este mensaje ha sido analizado por el servicio de antivirus
> de la UCf, mediante MailScanner y  F-prot en busca de virus 
> y otros contenidos peligrosos, y se considera que esta limpio.
> No obstante tome sus propias medidas de seguridad.
> 
> 

--
Jesus Aneiros Sosa
GNU/Linux User #190716
perl -e '$_=pack(c5,0105,0107,0123,0132,(1<<3)+2);y[A-Z][N-ZA-M];print;'


-- 
Este mensaje ha sido analizado por el servicio de antivirus
de la UCf, mediante MailScanner y  F-prot en busca de virus 
y otros contenidos peligrosos, y se considera que esta limpio.
No obstante tome sus propias medidas de seguridad.