title: with open(file_name, 'w') as my_file: PermissionError: [Errno 13] Permission denied
body: <p>I create a file and store some text in it. On WSL it works, but on my server it doesnt work?
  It this a user permission issue on the server or is there something wrong in the code.</p>
  
  <pre><code>file_name = str(self.pk) + 'host.ics'
      with open(file_name, 'w') as my_file:
          my_file.writelines(c)
  </code></pre>
  
  <p>Its created on my WSL but on the linux server it gives this error:</p>
  
  <pre><code>in send_email_client with open(file_name, 'w') as my_file: PermissionError: [Errno 13] Permission denied: '12host.ics'
  </code></pre>