Thanks to all for the tips and clarifications.
-------------------------------------------------------- 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 Bill Dodge Sent: Tuesday, October 16, 2007 1:33 PM To: LINUX-390@VM.MARIST.EDU Subject: Re: zip/unzip preserve uid/gid? ---- Linux on 390 Port <LINUX-390@VM.MARIST.EDU> 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 > -------------------------------------------------------- To get the desired results the user oracle needs to do the zip using sudo. I have set up sudoers so that there is an entry oracle ALL=(ALL) NOPASSWD: /bin/tar which allows oracle to tar -cz files not owned by oracle -- Bill Dodge email: [EMAIL PROTECTED] Phone: (703)627-2455 "If you don't know where you are going, any road will take you there." Lewis Carroll "If you don't know where you are, a map won't help" Unknown ---------------------------------------------------------------------- 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