BarracudaDrive command line options

-h<directory>

Set the BarracudaDrive home directory. The home directory is by default the directory where you started BarracudaDrive. The server creates and maintains a number of XML files in the home directory. Therefore, always start BarracudaDrive in the same directory.

Example, set /Users/BarracudaDrive as home directory:

BarracudaDrive -h/Users/BarracudaDrive

-p<port number>

Set the HTTP port number. BarracudaDrive by default tries to open port 80. If port 80 cannot be opened, the server tries to open a port in the range 8080 to 8100.

Example, listen on port 2080:

BarracudaDrive -p2080

-s<port number>

Set the HTTPS port number. BarracudaDrive by default tries to open port 443. If port 443 cannot be opened, the server tries to open a port in the range 8443 to 8500.

Example, listen on port 2443:

BarracudaDrive -s2443

-r<drive and/or path>

The default is to open files in the root directory of the drive BarracudaDrive started from. You can set an alternate drive and/or path. As an example, you can set the root to -re:/webserver. It is recommended to configure the user permissions by using the constraints editor instead of using this option.

Windows only:

A special option for the Windows operating system makes it possible to list all Windows drives using BarracudaDrive. The option requires that you know how to use the Constraints Editor. See the tutorial for more information.

-d

UNIX daemon mode: this option has no effect on Windows. The -d flag will fork BarracudaDrive into the background. Use this flag instead of using the shell's built-in job background control mechanism.

-u<username>

From version 2.2.2.
Set effective user on UNIX systems, including Mac OS X. On UNIX, port numbers below 1024 are reserved for super-user processes, thus only the user 'root' is allowed to open port 80 and 443. It is not recommended to run BarracudaDrive with root privileges as all files created by BarracudaDrive will be owned by root. The -u option makes it possible to start BarracudaDrive as root, open the HTTP ports, and change to another user. You can either create a new user for BarracudaDrive or run BarracudaDrive with your own user ID. This option has no effect on Windows.

Running BarraucaDrive with your user ID:

sudo ./BarracudaDrive -u`whoami`



Starting BarracudaDrive on UNIX/Mac

The following example assumes you have unzipped BarracudaDrive in sub-directory "BarracudaDrive" in your home directory.

sudo $HOME/BarracudaDrive/BarracudaDrive -u`whoami` -p80 -s443 -h$HOME/BarracudaDrive -d