Id want to copy software files from USER01 to USER02 and to USER03 so that they would work under USER02 and USER03 correctly.
I would have to copy them by using putty and logged in as root.
How can I get them to use right permissions and right owner and right group?
I have tried
cp -pr /mydir/user01 /mydir/user02
chown -R user02:user02 /mydir/user02
cp -pr /mydir/user01 /mydir/user03
chown -R user03:user03 /mydir/user03
This doesnt get soft working.