tar Cannot open: File exists

tar Cannot open: File exists

tar: Exiting with failure status due to previous errors

 

查了一下源目录的属性,发现该目录要求owner,group, others都要有读写和执行权限
tar Cannot open: File exists

再看该目录,原来others没有写权限

#ls -ld .
drwxr-xr-x 2 root root 4096 2011-05-20 10:02 .

按照下面修改就可以了

#chmod 777 .
# ls -ld .
drwxrwxrwx 2 root root 4096 2011-05-20 10:02 .