---- Linux on 390 Port <[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 > --------------------------------------------------------
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
