Jobst Schmalenbach wrote:
 
> On Tue, Jan 16, 2001 at 03:47:01PM +1100, Jeff Waugh ([EMAIL PROTECTED]) wrote:
> > <quote who="Marty">
> >
> > > anyone know of a utility that will alter the userid of files if i change
> > > the userid of their owner or group...
> 
> whats wrong with the "-R" option???

Won't work as requested.
It appears that Jeff has changed this (in /etc/passwd):

  httpd:x:503:503:::

to this

  httpd:x:690:750:::

(as an example)

And a good question he asks: how can chown change all files owned
by  503.503 to be owned now by 690.750?

The script challenge: do the above in a one-liner using find and chown.
Maybe something like:

  find /some/starting/directory -group 503 -user 503 -exec chown 690.750 {}

Rgds
RW

--
Rick Welykochy || Praxis Services Pty Limited
"Tired of being a crash test dummy for Microsoft? Try Linux"


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to