[ale] chmod question

Dow Hurst dhurst at kennesaw.edu
Mon Jun 7 13:38:29 EDT 2004


How come you don't have to do this:

find . \( -type f \) -exec chmod 666 {} \;

I thought from my IRIX background that the search was done in a subshell so 
had this syntax.  Is this an IRIX specific version oddity of the find command 
and the Linux/GNU version is written differently?
Dow


Jason Etheridge wrote:
>> Is there a way to use chmod recursively where it will only change the 
>> permissions on the files and not the directories?  chmod -R changes 
>> everything thus making the directories non-traversable.
> 
> 
> find . -type f -exec chmod 666 {} \;
> 
> That should work.  Type f refers to regular files.
> 
> -- Jason
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 

-- 
__________________________________________________________
Dow Hurst                  Office: 770-499-3428            *
Systems Support Specialist    Fax: 770-423-6744            *
1000 Chastain Rd. Bldg. 12                                 *
Chemistry Department SC428  Email:   dhurst at kennesaw.edu   *
Kennesaw State University         Dow.Hurst at mindspring.com *
Kennesaw, GA 30144                                         *
************************************************************
This message (including any attachments) contains          *
confidential information intended for a specific individual*
and purpose, and is protected by law.  If you are not the  *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it,  *
is strictly prohibited.                                    *
************************************************************



More information about the Ale mailing list