title: Privileges/owner issue when writing in C:\ProgramData\
body: <p>As pointed out in <a href="https://stackoverflow.com/questions/22095286/writing-config-file-in-c-program-files-x86-myapp-myapp-cfg-vs-administrator">Writing config file in C:\Program Files (x86)\MyApp\myapp.cfg, vs. Administrator privilege</a>, it is <strong>not</strong> a good idea to write a config file in <code>C:\Program Files (x86)\MyApp\myapp.cfg</code>.</p>
  
  <p>Instead of this, my software now saves its data in a subdir of <code>%ALLUSERSPROFILE%</code> (ex : <code>C:\ProgramData\MyApp\myapp.cfg</code> on Win7) </p>
  
  <p><em>[I use <code>myfile = open(filename, 'a')</code> in Python to do this.]</em></p>
  
  <p>I now encounter an issue about this file :</p>
  
  <ul>
  <li>I installed the software with <code>User A</code>, and ran it, then the file <code>C:\ProgramData\MyApp\myapp.cfg</code> was written.</li>
  <li>Then, I changed user to <code>User B</code>, and ran my software again : now an error is displayed : <code>User 2</code> has no right to write in <code>C:\ProgramData\MyApp\myapp.cfg</code>  (<code>Permission denied</code>).</li>
  </ul>
  
  <p><strong>Why? Isn't <code>%ALLUSERSPROFILE%</code> a place that can be written by all users?
  How to solve this problem ?</strong></p>