Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 4
    Note that --no-same-permissions is the default for non-root users. That would also affect directories making them non-searchable, so (umask 111; tar xf file.tar) would only work if the archive didn't contain any directory. Commented Oct 28, 2023 at 7:39
  • 1
    Sadly, "not containing directories" also applies to the root directory. We can only use this umask trick if it's one of those tar archives that blow up in the current directory when you extract them. Commented Oct 28, 2023 at 14:43