WebNFS Developer's Guide

Why Do I Get "Permission Denied" Errors When I Try to Read My Own Files?

The Java NFS client defaults the user's credential to nobody, that is, a user-id and group-id of 60001. This identity is fine if the user is accessing files in a public archive, but if the files have access restrictions enforced by the file permissions then access will be denied unless a valid credential is used. The class XFileExtensionAccessor in com.sun.nfs supports a method called loginPCNFSD() that passes the user's login name and password to the PCNFSD service on a server that is running the PCNFSD daemon. If the loginname and password are correct then a valid credential with the user's UID and GID is constructed and used in all future NFS calls.