The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
ssh permission denied gefa AIX 3 1 Day Ago 07:52 AM
file premission sonali UNIX for Dummies Questions & Answers 1 10-19-2006 03:13 AM
Permission Denied howeezy UNIX for Dummies Questions & Answers 0 09-14-2005 06:52 AM
tar : permission denied big123456 UNIX for Advanced & Expert Users 0 09-09-2005 01:32 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-03-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
tar premission denied

hi
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
tar -xvf <DEV_LOCATION> <FILE_NAME>

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
Reply With Quote
Forum Sponsor
  #2  
Old 01-03-2008
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
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:

Code:
 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.
Reply With Quote
  #3  
Old 01-03-2008
Registered User
 

Join Date: Jan 2008
Posts: 2
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
Reply With Quote
  #4  
Old 01-03-2008
andryk's Avatar
Registered User
 

Join Date: Sep 2003
Posts: 448
Hi,
try pax if you have it
Code:
pax -rvs '#/##' < /dev/tape/tape14c
That will remove the leading slash ...
Reply With Quote
  #5  
Old 01-03-2008
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
Quote:
Originally Posted by fortheppl View Post
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.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0