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 running a python program and I cant save any changes and I get this error message... < Function saveFile at 0x31dfb90 >: IOError(13, 'Permission denied') If you need to know any other info please ask, I need help! Can anyone tell me how to give the program permission? Or fix the probleme in any other way? Thanks!

share|improve this question
"I'm running a python program" Please be more specific here. What exact application are you running? How did you install it? What is the full traceback? What Python version are you running? Etc. etc. Please edit your question to include all this information. – gertvdijk Aug 17 '13 at 23:40
up vote 1 down vote accepted

I assume that the program tries to save something to a system directory or in a directory you don't have permissions to write.

You have two options:

  1. Modify the program in order to save whatever it saves to your home directory where you have write permissions.

  2. Run the program with elevated (root) privileges using: sudo python you will have to provide root's password each time you run the program this way though.

share|improve this answer
Option 2 works! Thank you so much! – ZephaniahNoah Aug 18 '13 at 4:01
Please consider then to mark the answer as correct so others can find answers to similar questions. – Stef K Aug 18 '13 at 7:12
I don't know how to. – ZephaniahNoah Aug 18 '13 at 23:28
You can learn more about how accepting answers works at – Stef K Aug 18 '13 at 23:35

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.