Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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 your_program.py 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! –  user177878 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. –  user177878 Aug 18 '13 at 23:28
    
You can learn more about how accepting answers works at askubuntu.com/help/someone-answers –  Stef K Aug 18 '13 at 23:35

Your Answer

 
discard

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.