The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-03-2008
fortheppl fortheppl is offline
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
  #2 (permalink)  
Old 01-03-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
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.
  #3 (permalink)  
Old 01-03-2008
fortheppl fortheppl is offline
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
  #4 (permalink)  
Old 01-03-2008
andryk's Avatar
andryk andryk is offline Forum Advisor  
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 ...
  #5 (permalink)  
Old 01-03-2008
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0