Public bug reported: Binary package hint: tar
Perhaps related to bugs 1828 and 63338? First of all: The following works tar tvfz SectionalEditPlugin.tgz tar -tvf SectionalEditPlugin.tgz but this DOESNT WORK tar -tvfz SectionalEditPlugin.tgz tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now Then tar is very particular about the syntax for the --owner and --group options but I got this command to execute: tar --owner=www-data --group=www-data -xvf SectionalEditPlugin.tgz however it has NO EFFECT AT ALL on the ownership of extracted files, even when run as root Just to check that www-data is a valid user: grep www-data /etc/passwd www-data:x:48:48:www-data:/srv/www:/bin/sh Other variations of the command that you would expect to work, dont: tar --owner=www-data --group=www-data -xvfz SectionalEditPlugin.tgz tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar -xvf --owner=www-data --group=www-data SectionalEditPlugin.tgz tar: --owner=www-data: Cannot open: No such file or directory tar: Error is not recoverable: exiting now ** Affects: tar (Ubuntu) Importance: Undecided Status: Unconfirmed ** Description changed: Binary package hint: tar Perhaps related to bugs 1828 and 63338? First of all: - The following WORKS (good) + The following works tar tvfz SectionalEditPlugin.tgz tar -tvf SectionalEditPlugin.tgz - but this DOESNT WORK (bad): + but this DOESNT WORK tar -tvfz SectionalEditPlugin.tgz tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now Then tar is very particular about the syntax for the --owner and --group options but I got this command to execute: tar --owner=www-data --group=www-data -xvf SectionalEditPlugin.tgz however it has NO EFFECT AT ALL on the ownership of extracted files, even when run as root Just to check that www-data is a valid user: grep www-data /etc/passwd www-data:x:48:48:www-data:/srv/www:/bin/sh Other variations of the command that you would expect to work, dont: - tar --owner=www-data --group=www-data -xvfz /mnt/share/downloads/twiki/SectionalEditPlugin.tgz + tar --owner=www-data --group=www-data -xvfz SectionalEditPlugin.tgz tar: z: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar -xvf --owner=www-data --group=www-data SectionalEditPlugin.tgz tar: --owner=www-data: Cannot open: No such file or directory tar: Error is not recoverable: exiting now -- tar --owner and --group options don't work https://launchpad.net/bugs/84106 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs