LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 09: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, 09:34 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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, 09:44 AM   #3
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

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 01:08 AM.
 
Old 06-24-2012, 02:39 PM   #4
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 698
Blog Entries: 1

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
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, 01:21 AM   #5
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 509

Rep: Reputation: 203Reputation: 203Reputation: 203
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, 01:42 AM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,870
Blog Entries: 1

Rep: Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871Reputation: 1871
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 02:01 AM.
 
  


Reply



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 07:05 PM
Problem unzipping/untaring any linux kernel pianom69 Linux - Newbie 4 04-20-2004 12:53 AM
When untaring, where do they go? BaZiL Linux - General 2 09-22-2003 05:22 AM
Problem with Root and untaring/install permissions CragStar Linux From Scratch 1 12-13-2002 07:14 AM
Problem with Root and untaring/install permissions CragStar Linux From Scratch 2 11-24-2002 07:15 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration