[Techtalk] chown question

Aaron Mulder ammulder at alumni.princeton.edu
Tue Jan 22 12:24:59 EST 2002


On Tue, 22 Jan 2002, Malcolm wrote:
> Does anyone know of a simple way to chown only the files of a specified
> user in a directory tree? (ie. 'chown user.user -R' but only for one
> user, where the directory contains files owned by several users).

find <base_dir> -user <user> -exec chown <newuser>:<newgroup> {} \;

Aaron




More information about the Techtalk mailing list