Operating System - HP-UX
1832311 Members
2165 Online
110041 Solutions
New Discussion

tar: getwd: can't open ..!!!

 
SOLVED
Go to solution
Becke
Super Advisor

tar: getwd: can't open ..!!!


Dear Team,

Im trying to tar the contents of the current directory but its bombing out the error message ie "tar: getwd: can't open .."

Subsequnetly I have changed the permissions on ".." directory but its giving out the same error??

I have also unmounted the filesystem and changed the underlying permissions to 777 and mounted the filesystem back but still no difference, any adives would be appreaciated??

Below are the contents of the current direcotry which im trying to tar by using command ie "tar -cvf /tmp/mylog.tar ."

"drwxrwxrwx 8 wasadmin wassup 4096 May 2 14:22 .
16 drwxrwxrwx 17 wasadmin wassup 12288 Apr 29 07:29 ..
0 drwxrwxrwx 2 wasadmin wassup 256 May 2 14:22 test_Node
0 drwxrwxrwx 2 wasadmin wassup 256 May 2 14:19 TestDC_Node
8080 -rwxrwxrwx 1 wasadmin wassup 10485760 May 2 14:22 activity.log
8 drwxrwxrwx 2 wasadmin wassup 8192 May 2 14:19 ffdc
0 drwxrwxrwx 2 root system 256 Apr 2 16:39 lost+found
4 drwxrwxrwx 2 wasadmin wassup 4096 May 2 14:19 nodeagent
3 REPLIES 3
Rasheed Tamton
Honored Contributor
Solution

Re: tar: getwd: can't open ..!!!

Dear Raf,

It should be permission related. Can you put the tar file to /var/tmp. Also try tar with few files under test_Node dir.

Becke
Super Advisor

Re: tar: getwd: can't open ..!!!


thanks mate, i sorted it out,

Bloody i had to ask the user to log out and log back in again and it worked.....

Thanks all
Eric Antunes
Honored Contributor

Re: tar: getwd: can't open ..!!!

Hi,

I think you should try with:

#tar cv

Best Regards,

Eric Antunes
Each and every day is a good day to learn.