zip-2.3-732.4 unzip-5.50-345.1 target system has oracle/oinstall defined. I'm switching to tar and gzip
Thanks -------------------------------------------------------- This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system. -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Adam Thornton Sent: Tuesday, October 16, 2007 1:38 PM To: [email protected] Subject: Re: zip/unzip preserve uid/gid? On Oct 16, 2007, at 11:42 AM, Romanowski, John (OFT) wrote: > As userid root I'm using zip and unzip to copy and restore a directory > of files not owned by root (they're owner/group is oracle/oinstall). > > I find the unzip-ed files and directories are all owned by root/root > instead of oracle/oinstall as I expected. > Am I expecting too much? > Maybe should use gzip/gunzip instead? What version of zip are you running? Info-zip 2.31 seems to include extra file attributes (uid/gid) by default. Do you have an oracle/oinstall user/group with the same uid/gid on the target system? If not, then maybe that's why it's failing: if the target user or uid/group or gid doesn't exist, making it owned by "root" would seem to be not unreasonable default behavior. Adam ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
