14.2. Make RFS writable

Enable writing access via RFS (Remote File System) [via WFS protocol].[58]

  1. On the server, in pappserver.cfg, make following entries:

    [FileSystemModule]
    PrefixAllow="$CADENAS_DATA","$CADENAS_UPLOAD"
    WriteAllow="$CADENAS_UPLOAD"

  2. In the start.env, specify the environment variable CADENAS_UPLOAD.

    CADENAS_UPLOAD=$CADENAS/../upload

  3. On the client, in filesystem.cfg make following entry:

    [FILESYSTEMS]
    $CADENAS/upload="m","wfs://<hostname>:9020/CADENAS_UPLOAD"

  4. In PARTadmin -> AppServer Service -> tabbed page Assign rights enter the desired user as Appserver Administrator (appserver-admin).

    [Note]Note

    It has to be a Windows user.

  5. On the tabbed page Rights (psolrights.cfg), assign the right "appserver-writefs" to the user.

    "User is allowed to write to writeable filesystems on the server."

    Copy, delete and list should work now.

    File upload via scripting should work as well now:

    dim fso=createobject("scripting.filesystemobject")
    stdprint(fso.copyfile("pappserver.exe","$CADENAS/upload/pappserver.exe",1))
    stdprint(fso.copyfile("I:\\WEBNLS_DATABASE_BACKUPS\\WEBNLS.bak","$CADENAS/upload/
     WEBNLS.bak",1))

    The content is chunked in 1MB steps... Theoretically possible would be as well:

    fso.copyfile("<localfile>","wfs://<server>:<port>/CADENAS_UPLOAD/targetfile.ext")
    

    NTLM authentication is only requested if write operations shall be performed. Otherwise it remains with anonymous access for service/fs...




[58] #105309