chowning the folder to the current user makes tar fail silently so the installer can continue. Judging from the OP's own answer, it seems then that the installer checks tar's exit code and stops if an error was encountered. Permissions are restored for both the folder and the files, and no error is thrown even though user2 ownership could not be restored. Here's what happens if the extraction is performed in a directory owned by user1 instead: $ tar xpvzf The files are however extracted, although owned by user1. Tar throws an error because it cannot change ownership and permissions for files owned by user2. Tar: Exiting with failure status due to previous errors : Cannot change mode to rwxrwxr-x: Operation not permitted If we extract the archive in a directory owned by user2 with permissions 777, here's the outcome: $ tar xpvzf Let's say we are user1 and have created an archive with tar cvpzf. Update: Here's some more details about tar's behaviour. Reference: read this informative Q
0 Comments
Leave a Reply. |