tar premission denied

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users tar premission denied
# 1  
Old 01-03-2008
tar premission denied

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

the command which i gave to extract is

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

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. Smilie

plz gimme the solution
# 2  
Old 01-03-2008
As root, just untar the file to /tmp or other suitable location using the s option, move it to the desired location and (re)set its permissions.

From the Tru64 UNIX manpage for tar:

 s   [Tru64 UNIX]  Tells tar to strip off any leading slashes from pathnames
      during extraction.  This is useful when restoring a tape that was
      created on a system with a different file system structure.

# 3  
Old 01-03-2008
tried with option 's' ,but getting the same error.
in root mount point we are not having enough space.
i gave this command
tar -xvf /dev/tape/tape14c IN_CDRP_46_1-17_CT_SEP2007.dmp.gz s /backup4

getting the same error
# 4  
Old 01-03-2008
try pax if you have it
pax -rvs '#/##' < /dev/tape/tape14c

That will remove the leading slash ...
# 5  
Old 01-03-2008
Originally Posted by fortheppl
tried with option 's' , but getting the same error.
in root mount point we are not having enough space.
If you have not got enough space on the root filesystem, then you have to find
another filesystem with enough space before you can untar the file you want.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Do I need to extract the entire tar file to confirm the tar folder is fine?

I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it. Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem? tar tvf file1.tar ... (1 Reply)
Discussion started by: vivien_chu
1 Replies

2. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

3. Shell Programming and Scripting

tar command dont tar to original directory

HI, if I have a tarfile called pmapdata.tar that contains tar -tvf pmapdata.tar -rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt -rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt -rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies

4. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

5. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

6. UNIX for Advanced & Expert Users

Tar utility (untar a .tar file) on VxWorks

Hi All Can someone pls guide me if there any utility to compress file on windows & uncompress on vxworks I tried as - - compressed some folders on windows ... i created .tar ( to maintain directory structure ) and compressed to .gz format. - on VxWorks i have uncompressed it to .tar... (1 Reply)
Discussion started by: uday_01
1 Replies

7. UNIX for Dummies Questions & Answers

file premission

Hi all, If file permission is set as 000 then by whom it can be access? (1 Reply)
Discussion started by: sonali
1 Replies

8. UNIX for Advanced & Expert Users

tar : permission denied

Hi, when I launch : tar cf - *|rsh ${HOST} -l user "cd /u02/db/appl;tar xf -" I have this error message when execute tar : tar: admin/out/appsutil/appsutil/template/addbprf.sh: Permission denied I want to know if the permission on source file is wrong or on destination we (tar) have(s) not... (0 Replies)
Discussion started by: big123456
0 Replies
Login or Register to Ask a Question