From "man chown"

chown [-fhR] owner[:group] pathname ...

put the owner in followed by a ":" then the group name.

Al Nims
Systems Admin/Programmer 3
UFIT
University of Florida
(352) 273-1298

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of zos reader
Sent: Tuesday, June 28, 2016 10:01 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Chown query

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

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to