37.4. Example of FTP configuration

The example shows how:

37.4.1. Configuring the FTP resource

Activating the resource suffices without configuring all listed parameters.

[16:45:57] ABILIS_CPX:s p ftp act:yes

COMMAND EXECUTED

[16:47:43] ABILIS_CPX:d p ftp

RES:Ftp - Not Saved (SAVE CONF), Not Refreshed (INIT) -------------------------
       ------------------------------------------------------------------------
       DESCR:File_Transfer_Protocol_Server
       LOG:NO            ACT:YES   max-cli:4        max-ssl-sess:0
       tcp-locport-c:21            tcp-locport-d:20              TOS:0-N
       IPSRC:*                     IPSRCLIST:#                     
       DATA-TOUT:30      DT:300    REJ-1024:YES     SAME-IP:YES  SYSDRIVES:NO
       MAX-PWD-FAIL:4              DELAY-PWD-FAIL:5    
       MAX-IP-SES:NOMAX            MAX-USER-SES:2      
       ANONYMOUS-USER:DENY         REGISTERED-USER:PERMIT
       ANONYMOUS-HOMEDIR:

37.4.2. Activating the user “ftpuser

Add the user “ftpuser” in the Users table:

[16:02:24] ABILIS_CPX:a user:ftpuser pwd:ftpuser ftp:yes

COMMAND EXECUTED

[16:05:08] ABILIS_CPX:s user:ftpuser ftp-homedir:/test1/

COMMAND EXECUTED

[17:29:55] ABILIS_CPX:d user

- Not Saved (SAVE CONF) -------------------------------------------------------
------------------------+-------------+----------------------------------------
USER             PWD ACT|CTIP CLUS    |CHAT LDAP PPP FTP HTTP MAIL IAX SIP VO
------------------------+-------------+----------------------------------------
admin            *** YES #    #        YES  YES  YES YES YES  NO   NO  NO  NO
ftpuser          *** YES #    #        NO   NO   NO  YES NO   NO   NO  NO  NO
guest                NO  #    #        NO   NO   NO  NO  NO   NO   NO  NO  NO


[22:32:04] ABILIS_CPX:d user:ftpuser

Parameter:          | Value:
--------------------+----------------------------------------------------------
USER:                 ftpuser
REAL-NAME:            ftpuser
ID:                   7             <Read Only>
PWD:                  ***
ACT:                  YES
GROUP:                
CTIP:                 #
CLUS:                 #
ADDRBOOK-SYNC:        SYS           
ADDRBOOK-NUMBER:      AUTO          
ADDRBOOK-OUTDIAL:     NONE          
ADDRBOOK-PUB-ENABLED: SYS           
OPC-ROLE:             USER
OPC-VIEW:             *
OPC-HIDE-NUMBERS:     NO
OPC-MONITOR:          NONE
OPC-PRIVACY:          NO
CHAT:                 NO    
CHAT-USER:            SYS
CHAT-PWD:             SYS
FTP:                  YES   
FTP-HOMEDIR:          /test1/
FTP-PROT:             PLAIN,SSL
-------------------------------------------------------------------------------

37.4.3. Creating the virtual path

Create the association between virtual path /test1/ and physical path c:\usr\pub\test1\ (that corresponds to ftpuser's FTP-HOMEDIR).

[16:11:57] ABILIS_CPX:a ftp path:/test1/ phys-path:c:\usr\pub\test1\

COMMAND EXECUTED

[22:32:36] ABILIS_CPX:d ftp path

- Not Saved (SAVE CONF), Not Refreshed (INIT) ---------------------------------

Parameter:  | Value:
------------+------------------------------------------------------------------
PATH:         /pub/
PHYS-PATH:    C:\USR\PUB\
-------------------------------------------------------------------------------
PATH:         /pub2/
PHYS-PATH:    D:\USR\PUB\
-------------------------------------------------------------------------------
PATH:         /test1/
PHYS-PATH:    c:\usr\pub\test1\
-------------------------------------------------------------------------------
PATH:         /usr/
PHYS-PATH:    C:\USR\
-------------------------------------------------------------------------------
PATH:         /usr2/
PHYS-PATH:    D:\USR\
-------------------------------------------------------------------------------
[Note]Note

Supposing: test1 directory has been created by an user with administrator's rights (e.g. user admin).

[Caution]Caution

Execute the initialization command init res:ftp to activate changes.

37.4.4. Giving access rights to user “ftpuser

Give access rights to user “ftpuser” on directory c:\usr\pub\test1\.

[16:21:35] ABILIS_CPX:a ftp rights path:/test1/ user:ftpuser file:rwdn dir:lcdn recur:yes prot:plain,ssl

COMMAND EXECUTED

[22:33:27] ABILIS_CPX:d ftp rights

- Not Saved (SAVE CONF) -------------------------------------------------------

-------------------------------------------------------------------------------
ID: PATH:
       USER:                            FILE: DIR:  RECUR: PROT:
-------------------------------------------------------------------------------
  1 /pub/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       anonymous                        r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  2 /pub2/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       anonymous                        r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  3 /sysdrives/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  6 /test1/
       ftpuser                          rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  4 /usr/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  5 /usr2/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------

Give to ftpuser read-only rights on directory usr and its subdirectories (virtual path /usr/).

[16:29:04] ABILIS_CPX:a ftp rights path:/usr/ user:ftpuser file:rwd-n dir:l-c-d-n recur:yes prot:plain,ssl

COMMAND EXECUTED

[22:34:17] ABILIS_CPX:d ftp rights

- Not Saved (SAVE CONF) -------------------------------------------------------

-------------------------------------------------------------------------------
ID: PATH:
       USER:                            FILE: DIR:  RECUR: PROT:
-------------------------------------------------------------------------------
  1 /pub/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       anonymous                        r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  2 /pub2/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       anonymous                        r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  3 /sysdrives/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  6 /test1/
       ftpuser                          rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  4 /usr/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       ftpuser                          r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  5 /usr2/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------

37.4.5. Connecting to Abilis FTP server

An FTP client can be used to connect to Abilis FTP server.

The logged-in user accesses the directory /test1/ (c:\usr\pub\test1\) using the configured rights (create/rename/delete new directories or files). Outside directories can only be viewed.

37.4.6. Access to the system version directories

Settting the SYSDRIVES parameter to YES is needed to access to the system version directories, e.g. C:\8-5-1\ (/sysdrives/C/8-5-1/).

[16:45:57] ABILIS_CPX:s p ftp sysdrives:yes

COMMAND EXECUTED

[16:47:43] ABILIS_CPX:d p ftp

RES:Ftp - Not Saved (SAVE CONF), Not Refreshed (INIT) -------------------------
       ------------------------------------------------------------------------
       DESCR:File_Transfer_Protocol_Server
       LOG:NO            ACT:YES   max-cli:4        max-ssl-sess:0
       tcp-locport-c:21            tcp-locport-d:20              TOS:0-N
       IPSRC:*                     IPSRCLIST:#                     
       DATA-TOUT:30      DT:300    REJ-1024:YES     SAME-IP:YES  SYSDRIVES:YES
       MAX-PWD-FAIL:4              DELAY-PWD-FAIL:5    
       MAX-IP-SES:NOMAX            MAX-USER-SES:2      
       ANONYMOUS-USER:DENY         REGISTERED-USER:PERMIT
       ANONYMOUS-HOMEDIR:

The access is enabled by default for the user “admin”; access rights to user “ftpuser” can be given with the following command:

[15:19:20] ABILIS_CPX:a ftp rights path:/sysdrives/ user:ftpuser file:rwdn dir:lcdn recur:yes prot:plain,ssl

COMMAND EXECUTED

[15:20:01] ABILIS_CPX:d ftp rights

- Not Saved (SAVE CONF) -------------------------------------------------------

-------------------------------------------------------------------------------
  1 /pub/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       anonymous                        r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  2 /pub2/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       anonymous                        r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  3 /sysdrives/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       ftpuser                          rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  6 /test1/
       ftpuser                          rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  4 /usr/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
       ftpuser                          r---  l---  YES    PLAIN,SSL
-------------------------------------------------------------------------------
  5 /usr2/
       admin                            rwdn  lcdn  YES    PLAIN,SSL
-------------------------------------------------------------------------------