I need to read a bunch of binaries from a Java script running on Windows.
However, the folder in which the files are located has limited permissions. I (for example, my Windows username) have permissions to read them, but the user who runs Java (this is part of the web application) does not support. If I pass in my own Windows network username and password to Java at runtime, is there a way so that I can read these files using my own permissions and not the web user?
(Note that this does NOT happen over the Internet, this is a one-time import script that runs in the context of a web application.)
source
share