× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.