LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 06-20-2012, 10:14 AM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Question problem with untaring a file?


Hi all,
I am trying to untar a file on an AIX server but I am getting the follwoing error can anyone tell me what is that is wroing.

tar -xvf my_patch
/dsd: The file access permissions do not allow the specified action.
/dsd/ajit/XYZ: A file or directory in the path name does not exist.

Please let me know how can I avoid this error.

Thanks,
 
Old 06-20-2012, 10:34 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Well---first check/fix the permissions. What do you get from "ls -l | grep my_patch" (run this while in the directory containing my_patch.

The 2nd error message probably is a symptom of the first---ALWAYS fix the first error message first.....

finally, is "my_patch actually a tar archive? In normal practice it would be named "my_patch.tar"
 
Old 06-20-2012, 10:44 AM   #3
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Original Poster
Rep: Reputation: 21
These are the respective outputs of the ls -ltr |grep my_patch command

On the server where I create the tar file

-rw-rw-r-- 1 ajit staff 45455360 Jun 20 14:50 my_patch

On the server where I am untarring the file

-rwxrwxrwx 1 abc www 45455360 Jun 20 15:01 my_patch

As I was getting the eroor I changes the permissions to 777 for my_patch where I am untarring the file.

Yes my_patch is a tar archive.Next time will take care to name it .tar

Last edited by Ajit Gunge; 06-25-2012 at 02:08 AM.
 
Old 06-24-2012, 03:39 PM   #4
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 135

Rep: Reputation: 36
Hi Ajit Gunge

What is the exact command line ?
Everytime I got message
Quote:
/dsd: The file access permissions do not allow the specified action
it was due to incorrect argument switches.

Maybe try:
Code:
tar -xf- < filename
John
 
Old 06-27-2012, 02:21 AM   #5
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 281

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by Ajit Gunge View Post
tar -xvf my_patch
/dsd: The file access permissions do not allow the specified action.
Hi Ajit,

This is due to permission problems on the destination directory /dsd, not on the tar file.

Regards
 
Old 07-14-2012, 02:42 AM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,880

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Re-create the tar-archive with relative pathnames:

Code:
old: cd /some/where
     tar -cvf dsd.tar /dsd
new: cd /
     tar -cvf /some/where/dsd.tar dsd

Last edited by NevemTeve; 07-14-2012 at 03:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"gzip: stdin: unexpected end of file" when untaring Niflheim Linux - Newbie 8 11-12-2007 08:05 PM
Problem unzipping/untaring any linux kernel pianom69 Linux - Newbie 4 04-20-2004 01:53 AM
When untaring, where do they go? BaZiL Linux - General 2 09-22-2003 06:22 AM
Problem with Root and untaring/install permissions CragStar Linux From Scratch 1 12-13-2002 08:14 AM
Problem with Root and untaring/install permissions CragStar Linux From Scratch 2 11-24-2002 08:15 PM


All times are GMT -5. The time now is 09:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration