This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

This scenario is a special mode of CrushFTPDrive to make it act as a transparent SMB proxy to a CrushFTP server. These only work on CrushFTPDrive v2.5.33 and above.
#

Example launch command (very long):

java -Dcrushftpdrive.base_url=http://127.0.0.1:8080/ -Dcrushftpdrive.server_ip=0.0.0.0 -Dcrushftpdrive.server_port=13000 -Duser.home=./ -Dcrushftpdrive.smbserver=true -Dcrushftpdrive.writeprefs=false -Dcrushftpdrive.writelog=false -Dcruftpdrive.writelogconsole=true -cp CrushFTPDrive.jar:alfresco-jlan.jar com.crushftp.client.smb.CrushFTPDrive -d drive_username=MyUser drive_password=password drive_auto=true drive_letter=CrushFTPDriveHome drive_auto_open=false map_drive=false

This now lets us mount a URL such as:
smb://127.0.0.1:13000/CrushFTPDriveHome/


Lets break down what all those parameters are:
#


This is the URL to the CrushFTP server. This is how we will be logging into it.
-Dcrushftpdrive.base_url=http://127.0.0.1:8080/

This is the SMB server IP we are goign to bind to, 0.0.0.0 being all ips on the current machine.
-Dcrushftpdrive.server_ip=0.0.0.0

This is the server port we will bind on waiting for connections. 445 is the default SMB port.
-Dcrushftpdrive.server_port=13000

This sets the java home location tot he current folder...important if you allow logging or creation of a prefs.XML file.
-Duser.home=./

Force start a SMB server, by default this is true except if launching this on OSX.
-Dcrushftpdrive.smbserver=true

Block the saving of a prefs.XML file containing our inline prefs we define.
-Dcrushftpdrive.writeprefs=false

Block the writing of a physical log file, usually you will want this to be true.
-Dcrushftpdrive.writelog=false

Write the log to the console instead of to a separate log file...good for a temporary quick debugging of an issue without using a log file.
-Dcrushftpdrive.writelogconsole=true

Specify which IPs or IP patterns are allowed to connect to this instance. We do not authenticate users based on username or password, we only authenticate based on source ip.
-Dcrushftpdrive.allowed_ips=127.0.0.1,192.168.1.*

Now we specify the jar files we are using to run this Java app...thsi includes the alfresco jar and the CrushFTPDrive jar.
-cp CrushFTPDrive.jar:alfresco-jlan.jar

Now we specify the class of the app to launch with:
com.crushftp.client.smb.CrushFTPDrive
The main parameter that makes it run in a daemon mode comes next:
-d

Followed by prefs.XML values that we are defining in line so we don't need to rely on a prefs.XML file to be loaded.

drive_username=MyUser drive_password=password drive_auto=true drive_letter=CrushFTPDriveHome drive_auto_open=false map_drive=false

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 25-Oct-2018 04:31 by Ben Spink.
G’day (anonymous guest)
CrushFTP9 | What's New

Referenced by
CrushFTPDrive

JSPWiki