LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (http://www.linuxquestions.org/questions/aix-43/)
-   -   problem with untaring a file? (http://www.linuxquestions.org/questions/aix-43/problem-with-untaring-a-file-4175412476/)

Ajit Gunge 06-20-2012 09:14 AM

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,

pixellany 06-20-2012 09:34 AM

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"

Ajit Gunge 06-20-2012 09:44 AM

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

jmccue 06-24-2012 02:39 PM

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

cliffordw 06-27-2012 01:21 AM

Quote:

Originally Posted by Ajit Gunge (Post 4707774)
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

NevemTeve 07-14-2012 01:42 AM

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



All times are GMT -5. The time now is 08:28 AM.