| Create User Profiles (PROF) members: |
| What Goes in a User Prof (Contents): You basically code one construct for each view you want the user to access. A construct always begins with VIEW = BEGIN and ends with VIEW = END. Other statements,such as CONFIG, PROPERTIES and MASK, go in between. You may also include comments and blank lines. Any line whose first non-blank character is an asterisk, *, is considered a comment. CONFIG = view_member_name Purpose: Use this statement to point to a view which, in turn, describes the files you wish the user to access. Please code only the name of the member. You MUST NOT code the type of the member for it is assumed to be FTPC. Defualt: None. You must code one CONFIG statement for each construct. PROPERTIES = DELETE=Y|N,RENAME=Y|N,CMNDS=ALL|GET|PUT|BLIND_PUT|LIST Purpose: Set attributes for the view as follows: DELETE = Y | N Enable (yes) or Disable (NO) the delete property. RENAME = Y | N Enable (yes) or disbale (no) the delete property. CMNDS = ALL | GET | PUT | BLIND_PUT | LIST ALL: allow GET, PUT and LIST (i.e., DIR) client commands. GET: allow only GET and LIST commands. PUT commands are NOT allowed. PUT: allow only PUT and LIST commands. GET commands are NOT allowed. BLIND_PUT: allow only PUT commands. LIST and GET commands are not allowed. LIST: allow only LIST (i.e., DIR) commands. GET & PUT are not allowed. Default: Enable DELETE and RENAME and allows ALL commands. MASK = filter. PURPOSE: Restrict files accessible only to those ones that match the filter's pattern.. The filter is a string up to 32 characters long. You can code the following wild characters: %: skip corresponding character ?: skip corresponding qualifier. *: skip the remaining characters and consider it a match. Default: None. You must code this statement if you want the server to perfrom filtering. NOTE: The MASK statements applies only to VTOC and VSAM Catalog views. Please do not code it for other views. Example: MASK = TEST.?.PROJ%.* matches any file whose leftmost three qualifiers are as follows: 1st qualifier must be TEST. 2nd qualifer can be any thing. It is totally skipped. 3rd qualifer must be exactly 5 characters long. The first four characters must be PROJ. |
| Introduction: User profiles are Libr members. You create a member for each user and catalog it in the startup sublibrary. The name of the meber must be the same as the ID the user logs in with. The type of the member, on the other hand, is fixed and must always be PROF. The contents of the member are used to build the user's Home, or Root, Directory. Also, the contents are used to set various properties for each subdirectory. This enables you to excersize microscopic control over what the user (can) do. |
| Sample User Profile: Let's say that you have defined user BART to the Server (by coding the global config statement USER = BART,PWD=WHATEVER). Also, you have created four views: LIBR.FTPC, POWER.FTPC, VSAM.FTPC and SAM.FTPC. Our objective is to grant BART access to these four views. Here is how his profile (BART.PROF) might look like. |
| User Profs are optional but....here is what the server does if you do not create a profile for a user: a. grants access to all FTPC members it finds, and b. sets a default mask to * and c. sets properties for each view to ALL, and d. enables Delete and Rename properties. Listen to this guy .........>>>>. |
![]() |
| HeeeeHaaa HeeeeHaaa HeeeeHaaa Please do code User Profs.... |
| VIEW = BEGIN CONFIG = LIBR * Point to LIBR.FTPC PROPERTIES = DELETE=N,RENAME=N,CMNDS=ALL VIEW = END * VIEW = BEGIN CONFIG = POWER * point to POWER.FTPC PROPERTIES = DELETE=N,RENAME=N,CMNDS=BLIND_PUT VIEW = END * * Next view is a VSAM Catalog view, so coding the MASK makes sense. * VIEW = BEGIN CONFIG = VSAM * Point to VSAM.FTPC PROPERTIES = DELETE=N,RENAME=N,CMNDS=GET MASK = BART.?.STUFF.* VIEW = END * * Next view is a DASD VTOC view, so coding the MASK also makes sense. Also, we want BART to just see the * names of the files and nothing else. * VIEW = BEGIN CONFIG = SAM * Point to SAM.FTPC PROPERTIES = DELETE=N,RENAME=N,CMNDS=LIST MASK = BART.SAM.* VIEW = END |