Download View this document as PDF
Transcript
CHAPTER 8 File and Network Access Using Java • The number of hard links is no more than one. If greater than one, the request fails. • The file to be opened is in a valid directory location. The request fails if the file is in the $SYBASE directory or not in one of the configured working directories. • The working directory has been configured with an access mask that allows files to be opened with write access. The default mask is 0666. The mask is not required unless you want a mask other than the default. Windows platforms If the user ID associated with the server has permission to access the file, access is granted if: • The file already exists in the %SYBASE% directory structure, read-only access is allowed, and open-for-write requests receive an ERROR_ACCESS_DENIED error, or • The file exists or is being created in the Windows %TEMP% directory and read-write access is allowed, or • The file exists or is being created in a configured work directory (a trusted directory). The access allowed is that defined for the work directory, or • The file exists or is being created in any subdirectory under a trusted directory. The access allowed is that defined for the parent directory. • If one trusted directory is nested inside another, then the system examines access to each trusted parent in the target file path and the most restricted access is applied. Thus it is possible to allow read-write access to a trusted directory tree, but then specify read-only or no access for specified directories below it. This behavior is similar to Windows behavior when applying ACLs to files. Java in Adaptive Server Enterprise 135