;=========================================================================
; Getty access file
; -----------------
;
;  For each user, the Access File must contain entries like this:
;
;   USER       UserID
;   <MODE>     "Programm Arguments"
;   [SNOOP]    "FileName"
;   [TIME]     <TimeOut>
;   [PATH]     <Path>
;   [CMD]      <Command>
;
;  with:
;
;   USER        LoginID, *same* as specified in the password file!
;
;   <MODE>      can either be one of
;                  EXEC     - if the programm should be executed
;                  SHELL    - if a FIFO shell should be opened
;                  LOCKED   - if the user has no access (no login)
;
;   SNOOP       optional, the filename to where the output  will  also  be
;               echoed to.
;
;   TIME        optional, time the user has
;
;   PATH        optional, the path the user has *no* access  to.  Patterns
;               are possible.
;
;   CMD         optional, command the user has *no*  access  to.  Patterns
;               are possible.
;
;  Comment lines start with a ";" in the FIRST colum.
;
;  NOTE: If no PATH or CMD entry is given, the programm  is  executed  and
;        the   user   has   *full*   access   (unless   you   are  running
;        multiuser.library)
;
;=========================================================================

;This is the described test-user
;-------------------------------

USER      test
SHELL     ""
SNOOP     "RAM:.%u.snoop"


;Example of a locked user
;------------------------

USER      locked                      ;user gets no access
LOCKED


;Examples for some bugs
;-----------------------

USER      error1                      ;can't open shell, fifo doesn't
SHELL     "mm %D %U %B %P %T %u %h"   ;recognize -> deadlock 'til timeout
				      ;** serious bug, try! no harm **

;USER      error2                     ;passwd entry, but no access entry!
				      ;** fixed, info text is displayed **

USER      error3                      ;acces entry, but no SHELL/EXEC
				      ;** fixed, info text is displayed **


;Examples for mode set to EXEC
;-----------------------------

USER      exec1                       ;user will see nothing!
EXEC      "c:type c:type hex"

USER      exec2                       ;user will see nothing, but the
EXEC      "c:type c:type hex"         ;output is echoed to "RAM:.exec2.snoop"
SNOOP     "RAM:.%u.snoop"

USER      shell1                      ;user gets a remote shell with *NO*
SHELL     ""                          ;restrictions!

USER      shell2                      ;dito to shell1, but the shell output
SHELL     ""                          ;is also echoed to "RAM:.shell2.snoop"
TIME      30                          ;and the user only has 30 seconds online
SNOOP     "RAM:.%u.snoop"

USER      shell3                      ;ahhh, remote shell with restrictions
SHELL     ""                          ;and output echoed to "CON:..."
SNOOP     "CON:0/0/640/200/User: %u"
PATH      "(RAM:#?|C:#?)"             ;restricted paths
CMD       "DIR#?"                     ;restricted commands

USER      shell4                      ;the output is echoed to the remote
SHELL     "c:type c:type hex"         ;shell. that's all folks!

USER      shell5                      ;dito to shell4 but the shell output
SHELL     "c:type c:type hex"         ;is also echoed to "RAM:.shell5.snoop"
SNOOP     "RAM:.%u.snoop"


;Examples for integrating a BBS (in this case CNet)
;--------------------------------------------------

USER      bbs
TIME      99999
EXEC      "cnet:bbs port 1 trap baud 19200"    ;serial.device, 0

USER      bbs0
TIME      99999
EXEC      "cnet:bbs port 0 trap baud 19200"    ;nullmodem.device,0


