Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I run Debian. I have a tar archive that, when extracted, assigns 777 permissions to all files/folders in it. I believe this has to do with the fact that I'm root, but is there a way to make it so they default to 755/644?

tar xfz jaws-complete-0.8.18.tar.gz

I tried editing /etc/login.defs, logged out and back in but no change.

I noted there is a --no-same-permissions option, but is there a way around using this?

share|improve this question
Please capitalize your posts properly (i.e., use "I" instead of "i", etc.) – that could've been a reason you could not post the initial version of this question. You should not insert dummy text to get around that filter. Thanks. – slhck Jul 3 '13 at 6:38
I wondered about that, i will keep in mind that for next time, -1 accepted. – Hayden Thring Jul 3 '13 at 6:45
Perhaps umask. – Dan D. Jul 3 '13 at 6:55
i believe that is handeled by /etc/login.defs – Hayden Thring Jul 3 '13 at 7:17
If you create a file and directory using touch and mkdir what permission you are getting ? – max Jul 3 '13 at 7:44

It's likely your tar file contains files with 777 permission. Run tar tvfz jaws-complete-0.8.18.tar.gz to verify. If that's the case, you just have to do a chmod -R go-w ...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.