Lookup the "find " command with exec. You should be able to recursively find and chown all files and directories.
Rob Schramm Ps a simple Google of "Unix find user chown" will give a variety of answers On Tue, Jun 28, 2016, 10:01 AM zos reader <zos.rea...@gmail.com> wrote: > Hi, > > I created a new directory with 755 permission and the directory should have > the group and owner as same as the previous one, as like owner should be > TSMMEV and and group should be TSMHXC. > > Old one:- > #file: /products/test/DB2/db10534/ > > *#owner: TSMMEV > #group: TSMHXC > user::rwx > group::rwx > other::r-x > > Newly created:- > > #file: /products/test/DB2/db105535/ > > *#owner: OPSME1 > #group: OPSYS1 > user::rwx > group::r-x > other::r-x > > I need to change the Owner as TSMMEV from OPSME1 and group as TSMHXC > from OPSYS1. > > chown -r TSMMEV > I know that chown command will work, but when i tried to find the location > of > owner TSMMEV & group TSMHXC, i not aware of the command. > > Can you please help me on this. > > Regards, > Samat > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > -- Rob Schramm The Art of Mainframe, Inc ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN