changing directory permissions recursively
    Bill Campbell 
    freebsd at celestial.com
       
    Thu Apr  8 22:55:16 PDT 2004
    
    
  
On Fri, Apr 09, 2004, dave wrote:
>Hello,
>    I've got a problem, a directory area has the wrong permissions, occurred
>from a dump restore. Now my user's can't get to the files within the area. I
>could go around and do chmod permissions directoryname, but i was wondering
>if there was a perl or shell script that would do this?
cd $topdir
find . -type d | xargs chmod 755
Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/
``Everybody is ignorant, only on different subjects.''
    Will Rogers
    
    
More information about the freebsd-questions
mailing list