I have a project requirement where a server side code running on a App Server (WebSphere) is required to read/write files from/to an Unix based file server. This Unix based file server has NFS running on it. Our dev team wrote a simple
Java IO code that accesses the files from a shared folder on this unix system. This shared folder has access to all.
However, when the access is restricted only to one user, say UserA, then the code fails and throws java.io Access is Denied exception. We have logged in to this app server as UserA still it doesnt help. I think the app server's service starts even before we login and thus starts as a Local System User.
java.io package does not have any class/method that accepts user credentials. I am currently looking in to WebNFS api. In the meanwhile, if anyone has successfully resolved this before, kindly let me know.