Pingu
11-22-2002, 02:19 PM
I need to chown a bunch of .htaccess files, scattered about in a whole bunch of subdirectories. Rather then doing each one manually, is there a way to do the recursive thing on those .htaccess files? Oh, without changing ownership of the rest...
chown -R dir
will chown dir and all subdirs and files under it
sorry, ignore last message, do the following:
chown user.group `find .htaccess`
CipherVendor
11-22-2002, 02:50 PM
Run the following command in the directory that you would like to chown .htaccess files in as well as for the .htaccess files in the subdirectories of your current location.
find . -name .htaccess -exec chown user.group {} \;
Pingu
11-22-2002, 04:41 PM
hehe, a few seconds of typing and presto, all done...
Thanks very much :)