Operating System - Tru64 Unix
1748128 Members
3467 Online
108758 Solutions
New Discussion юеВ

Re: tar premission denied

 
SOLVED
Go to solution
fortheppl
Occasional Contributor

tar premission denied

hi
when im trying to extract data from tape(HP DDS-3) im getting an error
tar: : permission Deneid

the command which i gave to extract is
tar -xvf

i took the backup in to tape from one server and trying to extract it in to another server.

im struggling with this error from last 3 days..
plz help me out

o/s
TRU64 ALPHA(1.5A)--The One Which im extracting
TRU64 ALPHA(1.5B)--The One Which i took the backup to tape.

when i tried from root user it is extracting to root mountpoint.

plz gimme the solution
11 REPLIES 11
Srikanth Arunachalam
Trusted Contributor

Re: tar premission denied

Hi,

There could be problem on destination system w.r.t
(1) Permission on directory or directory itself not being present on dest m/c.
(2) If there is the block size problem; this might help

tar xvbf 1

Thanks,
Srikanth
Steven E. Protter
Exalted Contributor

Re: tar premission denied

Shalom,

Most common cause of not being able to write to tape:
1) Write tab is set to not permit writes.

I don't know why you posted to HP-UX. But in that OS tape drives are not shareable machine to machine. That could be your problem here. Not a solution but an explanation.

The way around it. I write a script that builds the tar file to disk, scp (password free) the file to the machine with the tape drive and ssh to that machine to actually write the file to tape.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
fortheppl
Occasional Contributor

Re: tar premission denied

hi srikanth
thanks for the reply

i tried with xvbf
getting the same error :(
Vibhor Kumar Agarwal
Esteemed Contributor

Re: tar premission denied

May be your tar has absolute paths.

Give:
tar -tvf tar_file

This will list the contents, check for the leading /

It will indicate whether it has absolute paths or not.
Vibhor Kumar Agarwal
Srikanth Arunachalam
Trusted Contributor

Re: tar premission denied

Hi ,

How about the permission and ownership on the directory. Please compare between the 2 box.

May I have the command used for tar cvf and tar xvf for better understanding of the problem.

thanks,
Srikanth
john korterman
Honored Contributor

Re: tar premission denied

Hi,

>when i tried from root user it is extracting to root mountpoint<

It sounds as if you do not get the permission error when executing the tar extraction as root?

When you get the permission error, do you then use the same user (non-root) for the tar operations on both machines?
If yes, I guess that the users are not mapped to the same numeric id in /etc/passwd; just guessing, but this could explain the permission problem. Is that correct?

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

Re: tar premission denied

for writing to tape i gave the following command

tar -cvf /dev/tape/tape14c IN_CDRP_46_1-17_CT_SEP2007.dmp.gz IN_CDRP_46_1-17_CT_SEP2007.log

for extracting im giving the following command

tar -xvf dev/tape/tape14c IN_CDRP_46_1-17_CT_SEP2007.dmp.gz IN_CDRP_46_1-17_CT_SEP2007.log
fortheppl
Occasional Contributor

Re: tar premission denied

dear john
thanks for replying.
im using different users on both the servers for backup and restore operations.
Dennis Handly
Acclaimed Contributor

Re: tar premission denied

You seem to be using Tru64 and not HP-UX.
It seems your version has completely different checking and error messages.

I'm asking this thread be moved to the right forum.