I am transferring a tar file between two servers and extracting when it is received. The issue I am having is that the permissions are being retained and applied on the target server causing permission issues.
Is there a way to extract a tar file with ignoring the original permissions of the files it is extracting.
--no-same-permissions seems to "and" the umask, so even less permissions then in the tar.
The default options for tar command on CentOS-7.2 includes --no-same-permissions
The output from tar manual includes the following:
--no-same-permissions
apply the user's umask when extracting permissions from the archive (default for ordinary users)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With