Does unzip have a way to preserve the owner? I see the -X option in the man page, maybe you have to add that. I'd suggest using tar instead, and if you want it compressed, add the -z option.
On 10/16/07, Romanowski, John (OFT) <[EMAIL PROTECTED]> 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? > > John Romanowski > z/VM - zLinux Support > NYS Office for Technology > (518)485-9555 > -------------------------------------------------------- > 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. > -- Bruce Hayden Linux on System z Advanced Technical Support Endicott, NY ---------------------------------------------------------------------- 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