[SLE] extract tar file permission problem
I met a strange situation, anybody can help me ? I install a SuSE 6.3 version at my new PC recently, everything seems OK, but 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. So, anybody met this problem ? Any anybody can help me ? Thanks in advance. ;-) Rex Hsu ~ Rex Hsu -EDP- ' v ' OTTO-Chailease MailOrder Co,.LTD // \\ E-Mail: Rex@ottomall.com.tw /( )\ Phone: +886-2-2897-6611#119 ^` ~ '^ ICQ:21386147 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HEAD> <META content="text/html; charset=big5" http-equiv=Content-Type> <META content="MSHTML 5.00.2014.210" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial>I met a strange situation, anybody can help me ?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial>I install a SuSE 6.3 version at my new PC recently, everything seems OK, but </FONT><FONT face=Arial>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 </FONT><FONT face=Arial>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. </FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial>So, anybody met this problem ? Any anybody can help me ?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial></FONT> </DIV> <DIV><FONT face=Arial>Thanks in advance. ;-)</FONT></DIV> <DIV><FONT face=Arial>Rex Hsu</FONT></DIV> <DIV> </DIV> <DIV><FONT face=Arial> ~ Rex Hsu -EDP- ' v ' OTTO-Chailease MailOrder Co,.LTD // \\ E-Mail: <A href="mailto:Rex@ottomall.com.tw">Rex@ottomall.com.tw</A>/( )\ Phone: +886-2-2897-6611#119^` ~ '^ ICQ:21386147^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</FONT></DIV></BODY>
Rex Hsu wrote:
I met a strange situation, anybody can help me ? I install a SuSE 6.3 version at my new PC recently, everything seems OK, but 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. So, anybody met this problem ? Any anybody can help me ?
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. Paul -- 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/
Rex Hsu wrote:
I met a strange situation, anybody can help me ?
I install a SuSE 6.3 version at my new PC recently, everything seems OK, but 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.
So, anybody met this problem ? Any anybody can help me ?
ame here. never cared. The original owners UDI and GID are restored. (probaply another commandline option for tar) I usually -if I fell bothered- use (as root) "chown -R brauki.users foo-1.2.3" Juergen
Thanks in advance. ;-) Rex Hsu
~ Rex Hsu -EDP- ' v ' OTTO-Chailease MailOrder Co,.LTD // \\ E-Mail: Rex@ottomall.com.tw /( )\ Phone: +886-2-2897-6611#119 ^` ~ '^ ICQ:21386147 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\ -- 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/
participants (3)
-
abrahams@mbs.valinet.com
-
juergen.braukmann@ruhr-west.de
-
Rex@ottomall.com.tw