title: Read Remote File with Access Permissions
body: <p>I am trying to read a file on a network server (from a Windows XP machine), which I would normally access by asking for <code>\\ServerName\dirPath\</code> in the run dialog.</p>
  
  <p>Right now, I have to write a program that reads the file off the server and returns some results on my PC.</p>
  
  <p>The problem that I'm facing is that the login name on my PC does not have a login account on the server. As a result, I am unable to read the file on the server when I tried:</p>
  
  <pre><code>f = open(r'\\server\path\to\file', 'r')
  </code></pre>
  
  <p>I know that I can fix this by adding a user account to the server or to my PC, but short of those solutions, is there a way for me to pass login credentials to the server?</p>
  
  <p>I am running Windows XP on my PC and some flavor of Linux on the server</p>
  
  <p>Thank you</p>