title: Check if another user have the permission to write a File
body: <p>During an installation process I need to check if a userprovided path is writable to a specified user.</p>
  
  <p>The Path (A UNC Path like \fileserver\share) may not be writable to the user, who is executing the Setup.exe (It's a Windows-Only Software), so I think <a href="https://stackoverflow.com/questions/130617/how-do-you-check-for-permissions-to-write-to-a-directory-or-file">How do you check for permissions to write to a directory or file?</a> may not work for me.</p>
  
  <p>I know in Java7 there will be a new Filesystem-API, but Java7 is not released yet.</p>
  
  <p><strong>EDIT:</strong>
  User 1 - runs the installer
  User 2 - runs the installed application</p>
  
  <p>If user 1 get an error "Permission denied" I still don't know, about user 2. I need to check the permission for an other useraccount during the process of installation.</p>
  
  <p>I may use <code>net use /user:&lt;user2&gt; &lt;passwd2&gt;</code> but I'm not sure, if I get all information I need. I get the information, that the path exists, but not, if User 2 is allowed to write.</p>