#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Bracknell, UK
    Posts
    8
    Rep Power
    0

    Request - Admin script to change permissions


    I am moving web directories between Linux systems and need to change permissions (chmod, chown & chgrp) on multiple files and sub- directories.
    The directory structure for each site is the same, so does anyone have a generic unix admin script that can be modified and run from a base directory to automate this process?
    Thanks.
  2. #2
  3. Introspective
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    3,317
    Rep Power
    111
    why not just use the -R option to recurse from the base directory thru to the nodes..
    eg
    chown -R christo *

    christo
    This is me: http://chris.uk.com
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Location
    Bracknell, UK
    Posts
    8
    Rep Power
    0
    First. Apologies for delay in response. I've had some odd routing and firewall problems with my ISP which has allowed me to get to some sites, but not others.
    Second. Thanks for the suggestion about the use of the -R option. I'm still learning!!
    Regards,

IMN logo majestic logo threadwatch logo seochat tools logo