Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract tar archive without chown (--no-same-owner) #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tjmnmk
Copy link

@tjmnmk tjmnmk commented Sep 14, 2022

The file filebrowser is owned by user 1001:121 in the tar archive. When the script is executed as root, that owner is kept, this commit fixes it.

before:

root@jellyfin2:/usr/local/bin# ls -la filebrowser 
-rwxr-xr-x 1 1001 121 21147648 Jul 18 23:05 filebrowser

after:

root@jellyfin2:/usr/local/bin# ls -la filebrowser 
-rwxr-xr-x 1 root root 21147648 Jul 18 23:05 filebrowser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant