Hi, No it was just the files that needed to be changed.
Thanks all for the great feedback --- On Thu, 4/6/09, Woodchuck <[email protected]> wrote: From: Woodchuck <[email protected]> Subject: Re: chown To: "Steve" <[email protected]> Cc: [email protected] Received: Thursday, 4 June, 2009, 7:43 PM On Thu, Jun 4, 2009 at 5:13 AM, Woodchuck <[email protected]> wrote: > On Thu, Jun 4, 2009 at 3:52 AM, Steve <[email protected]> wrote: > something with find(1). > > Try > find /data -name "*.dat" -exec chown user:group {} \; > > But understand it first. Understand the quoting. man find. > > Dave I should add that this and related solutions have the desired property of doing what you say you want to do -- change the ownership of certain files named *.dat -- but they do not change the ownership of the various directories in the tree. So to anticipate the next post, "Now the new owners can't read/delete/get-a-ls the .dat files!!", you may need to change the permissions on the directories. How to do that is left as an exercise, hint man find (-type d) and man chmod. Dave -- Caution, this account is hosted by gmail. Strangers scan the content of all mail transiting such accounts. Need a Holiday? Win a $10,000 Holiday of your choice. Enter now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1l Y2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lB HRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/cre ativeholidays/*http%3A//au.docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p 3=mailtagline

