On Fri, Dec 1, 2017 at 9:32 AM, Dyck, Lionel B. (TRA) <[email protected]> wrote:
> Is there a tool that can find and report out all files that are owned by > users who have departed? > > Just ran into a few that were owned by someone who left several years ago. > The UNIX "find" command can do that for you. But it can take a long while to run, depending on where you start from. E.g. if you start the scan at the root directory, it will traverse every directory in every mounted filesystem (in general). This will take a while. In z/OS BATCH, you can try: //SCANIT EXEC PGM=BPXBATCH,REGION=0M, // PARM='SH find / -nouser' //STDIN DD PATH='/dev/null' //STDOUT DD SYSOUT=* //STDERR DD SYSOUT=* // Basically the "-nouser" switch does exactly what you want. For each file it finds (all in the above case), it will only display those whose "owner" UID does not have an associated RACF ID. > Thank you > > -------------------------------------------------------------------------- > Lionel B. Dyck <sdg>< > Mainframe Systems Programmer - TRA > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- I have a theory that it's impossible to prove anything, but I can't prove it. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
