ANONYMOUSFILEACCESS (FTP server) statement

Use ANONYMOUSFILEACCESS to set the type of files (MVS™, z/OS® UNIX, or both) that anonymous users are allowed to access. If STARTDIRECTORY is HFS and ANONYMOUSFILEACCESS is HFS, the anonymous user is not allowed to access MVS data sets. If STARTDIRECTORY is MVS and ANONYMOUSFILEACCESS is MVS, the anonymous user is not allowed to access z/OS UNIX files. If STARTDIRECTORY and ANONYMOUSFILEACCESS contradict each other, the anonymous user is not allowed to log in (the login fails). A value of BOTH allows the anonymous user to switch back and forth between MVS and z/OS UNIX data sets.

Restriction: ANONYMOUSFILEACCESS is valid only when ANONYMOUSLEVEL 3 or greater is specified.

Syntax

Read syntax diagramSkip visual syntax diagram
   .-ANONYMOUSFILEACCESS HFS-------.   
>>-+-------------------------------+---------------------------><
   '-ANONYMOUSFILEACCESS--+-BOTH-+-'   
                          +-MVS--+     
                          '-HFS--'     

Parameters

BOTH
Allows anonymous users to access both z/OS UNIX and MVS.
MVS
Allows anonymous users access to only MVS data sets.
HFS
Allows anonymous users access to only z/OS UNIX data sets. This is the default.

Examples

Allow the anonymous users to access both MVS and z/OS UNIX files:
ANONYMOUSFILEACCESS BOTH

Usage notes

ANONYMOUSFILEACCESS is valid only when ANONYMOUSLEVEL 3 is specified.

Related topics