Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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'm trying to install a game called Teeworlds. I plan on installing it inside of /opt since it is stand-alone and from what I've read this is the right place for it. However, I'm having trouble doing this.

I type in the following command in the terminal:

tar xvzf ~/teeworlds.tar.gz -C /opt

But it gives me errors since I don't have enough permissions. So I try doing this with sudo then it works but then I don't have enough permission to access the teeworlds folder because it is now owned by root.

I understand that I can do chown and all that stuff but is it really this much trouble to get something like this to work or am I just doing something wrong?

share|improve this question
It seems that the created directory does not have the correct read permission for those users other than the owner. Can you post the file flags associated with the directory? ls -l – Kory Wnuk May 28 '11 at 20:39

Yes, /opt is owned by root. You need to make the file executable by you. It's not exactly much trouble. It's one command: sudo chmod +x filename.

However, teeworlds is in the repositories. Is there a very good reason why you want to install it manually? You should always prefer to install software from the repositories whenever possible. It's much easier, faster, more reliable and secure.

sudo apt-get install teeworlds, or use this teeworlds Install teeworlds.

share|improve this answer
Please use meta for stuff like "Those links should be clickable". This is not a forum. – RolandiXor Oct 27 '11 at 0:16
Pardon? I don't understand what you're referring to. – Jo-Erlend Schinstad Oct 27 '11 at 1:10
I edited it out of your answer. – RolandiXor Oct 27 '11 at 1:32
Ah, yes, the point was for someone to make them clickable. I didn't know how back then. :) Thanks. – Jo-Erlend Schinstad Oct 27 '11 at 1:34
oh my apologies :D! I didn't notice the date :P – RolandiXor Oct 27 '11 at 1:36

what you done is right every thing owned by root can't accessible from other user you have always to change the owner of files or give permissions to read and write the folder for other user opt folder is owned by root so you can't create new folder to it without permissions ...

share|improve this answer
Why do you collect all the punctuation at the end? :) – Jo-Erlend Schinstad Jul 4 '11 at 6:08

runable files should have 755 permissions with root owner (see ls -l output in /usr/bin). Any user can run this commands but only root can change them.

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.