"Paul W. Abrahams" <abrahams@mbs.valinet.com> writes:
Rex Hsu wrote:
when I download a package file from internet or my friends send me a tar file, for example, such like 'php-3.0.13.tar.gz' , After I extract that file by "tar xvfz php-3.0.13.tar.gz" command, and that will create a directory named 'php-3.0.13' and the directory owner will become "drwxrwxr-x 507 507 4096 Jan 10 10:50 php-3.0.13", and below this directory, all files owner become same "507 507 ". Before this 6.3 version, I never met this , So I try that same package at SuSE 6.1 and 6.0, that looks fine, all files and directory owner is my name.
Have you tried going to the directory that contains the php-3.0.13 subdirectory and doing
chown -R hsu.users php-3.0.13
That changes the ownership of php-3.0.13 and everything below it to user hsu, group users. If all else fails you can do that as root.
I think you have to be root to run chown. The question is, why is tar not extracting to the recipient's owner/group? If its behavior has changed from SuSE 6.1 to 6.3, that must have to do with the glibc differences, no? Either this is a bug in the new tar/libc or there's a switch to tell tar to extract to the extractor's ownership.
I'm pretty sure there used to be switches to control this sort of thing. I tried to find something on this in the tar info thing on my SuSE 5.3 setup, but I can't find anything relevant. If anyone has a concise list of tar's switches, I'd appreciate a copy.
Jim
Thanks for your kindly help. ;-) Your idea mostly same as mine, but I tried to use the "xtar" program, that contain one option -- "Convert UID/GID" at XTar menu, if enable this option, that all files will be extracted normally, same as on SuSE 6.1 or SuSE 6.0. Maybe I lose some switch functions, who can tell me that ? I checked that tar program version is same as SuSE 6.1 ---> v1.12 , it should be tar/libc bugs. Who can tell me how to deal with this ? Thanks in advance. Rex Hsu -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/