Here's a solution using Unix's FIND that I've used in the past. It runs
incredibly long and utilizes a lot of disk resources. I don't know how you
could search the entire system without doing so however.
I put the following single line containing Unix find in a text file,
(something like /tmp/chgown.sh):
find . -user CUROWNER -exec chown NEWOWNER {} \;
You can then submit the command
QSH CMD('/tmp/chgown.sh')
-----Original Message-----
From: Rob Berendt [mailto:rob@xxxxxxxxx]
Sent: Thursday, August 04, 2016 6:50 AM
To: Midrange Systems Technical Discussion
Subject: Re: CHGOWN
Yes.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail
to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: David Gibbs <david@xxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 08/04/2016 08:34 AM
Subject: Re: CHGOWN
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
On 8/4/2016 6:57 AM, Rob Berendt wrote:
Is there a variation of the IFS command CHGOWN which will change the
owner
of all IFS objects owned by one owner to another?
This person owns too many objects to try to use WRKOBJOWN and option 9.
Are you looking to change owners only if the file is owned by a specific
owner?
For example ...
File a is owned by user 1
File b is owned by user 2
And you want to change ownership on file a because it's owned by user 1
but leave file b alone because it's owned by user 2?
david
As an Amazon Associate we earn from qualifying purchases.