Hard File System: Configuring

From CFTP

Jump to: navigation, search

This explains configuration for the latest Version 1.04


hardfilesystem.xml

Hard File System is configured through conf/hardfilesystem.xml in your FTP server. The original file contains comments and pre-configured directories with the most popular rules applied.


Note that the current implementation will not create any missing directories. You must configure every user manually in the user tag and manually create home folder matching its username.


This plug-in uses the Xml FS library. The configuration of its hardfilesystem.xml file is described here.


beans.xml

Hard File System is integrated into ColoradoFTP server through the conf/beans.xml file in your FTP server. There are some properties you may apply to Hard File System by editing this file. Locate the filesystem bean in the beans.xml file:

<bean id="filesystem" 
  class="com.coldcore.coloradoftp.plugin.hardfilesystem.HardFileSystem">
  <constructor-arg index="0" value="conf/hardfilesystem.xml"/>
  <property name="filesOwner" value="ftp"/>
  <property name="filesPermissions" value="rwxrwxrwx"/>
  <property name="mlsxDirFacts" value="cdeflp"/>
  <property name="mlsxFileFacts" value="adfrw"/>
</bean>

Properties explained:

filesOwner Files owner to display to users. User will see this value in her FTP client application for every file and directory. This value does not really matter. By default it is set to ftp.
filesPermissions Files permissions to display to users. User will see this value in her FTP client application for every file and directory. This value does not really matter, but some FTP clients will not attempt operations if this value does not make sense. By default it is set to rwxrwxrwx. This is not real permissions, this value will only be displayed to users and will not affect security.
mlsxDirFacts The same as filesPermissions. This is used in replies to MLST/MLSD commands and applies to directories. By default it is set to cdeflp. This is not real permissions, this value will only be displayed to users and will not affect security.
mlsxFileFacts The same as filesPermissions. This is used in replies to MLST/MLSD commands and applies to files. By default it is set to adfrw. This is not real permissions, this value will only be displayed to users and will not affect security.



Return to Plug-in: Hard File System

Personal tools