how to extract tar archive with r-xr-xr-x perms on .

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please Cc: me on any replies.  Thanks.

I have a tar archive that someone managed to create with no-readable 
directories in it, including '.'

dr-xr-xr-x user/group      0 2006-06-22 20:44 ./
dr-xr-xr-x user/group      0 2006-06-22 20:24 pos/
-r--r--r-- user/group 701771 2004-08-16 20:09 pos/foo
dr-xr-xr-x user/group      0 2006-06-22 21:19 ssl/
dr-xr-xr-x user/group  13423 2006-06-22 21:19 ssl/bar

When I try to extract the tar archive, it changes the permissions on . 
and then cannot create directories under ., causing the entire 
extraction to fail.

>tar xvzf files.tar.gz
./
pos/
tar: pos: Cannot mkdir: Permission denied
pos/foo
tar: pos/foo: Cannot open: No such file or directory
tar: Skipping to next header
ssl/
tar: ssl: Cannot mkdir: Permission denied
ssl/bar
tar: ssl/bar: Cannot open: No such file or directory
tar: Skipping to next header
tar: Error exit delayed from previous errors

I've tried all sorts of options, and none of them seem to work (same 
results as above):

tar -x --no-recursion --no-same-permissions -vzf files.tar.gz
tar -x --no-recursion --no-same-permissions -x -v -z -f files.tar.gz

Am I using tar correctly?

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux