Operating System - Tru64 Unix
1753905 Members
9784 Online
108810 Solutions
New Discussion

Re: tar premission denied

 
SOLVED
Go to solution
john korterman
Honored Contributor
Solution

Re: tar premission denied

Hi again fortheppl,

The permission problem can be overcome by excuting the extraction as root.
If you do not want the files to be restored with absolute path, extract them like this:

(Assuming the two files are the same directory.)
Cd to the directory where the files are located
$ tar -cvf /dev/tape/tape14c ./IN_CDRP_46_1-17_CT_SEP2007.dmp.gz ./IN_CDRP_46_1-17_CT_SEP2007.log


On the target machine:
Cd to the directory where the files should be put
As user=root
$ tar -xvf dev/tape/tape14c ./IN_CDRP_46_1-17_CT_SEP2007.dmp.gz ./IN_CDRP_46_1-17_CT_SEP2007.log

This also assume that the tape devices are identical on both machines.


Regards,
John K.
it would be nice if you always got a second chance
fortheppl
Occasional Contributor

Re: tar premission denied

Dear John

Its working from root user.
thanks a lot for every one who helped me out in this activity