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

Re: Chmodding a whole directory tree



In message <[🔎] Pine.HPP.3.95.970319225826.12888A-100000@curly.cea.wsu.edu>, Though
t writes:
> How do I make a whole directory tree and it's files readable by everyone?
> I can't just chmod -R a+r dir because then they won't be able to cd to the
> directories, but I can't chmod -R a+rx dir because then all the files will
> be executable...  Is there a way to make the directories +x without making
> all the files +x?  Or better yet is there a way to copy the owner's
> permissions to the group and other's permissions?  Thanks
> 
>
Try

chmod -R a+rX

see man chmod

HTH /Lars


Reply to: