linux - tar command changing the owner:group while extracting -


while extracting file using command tar -zxf bluez-arm-package.tgz owner(1000):group(pulse) of files , directories changing below example.

example:

drwxrwxr-x    4 1000     pulse         1024 jul 21 00:32 dbus-1  

the actual should be:

drwxrwxr-x    4 root     root          1024 jul 21 00:32 dbus-1 

there option output stream in tar : --no-same-owner

so

tar xvf test_tar.tar --no-same-owner 

will create files user launch command owner. it's little bit strange option (--no-same-owner) should default ordinary (non-superuser) users.

does work you?


Comments