COTTA File System: Configuring
From CFTP
cottafilesystem.xml
COTTA File System plug-in is configured through conf/cottafilesystem.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 cottafilesystem.xml file is described here.
beans.xml
COTTA File System plug-in is integrated into ColoradoFTP server through the conf/beans.xml file in your FTP server. There are some properties you may apply to COTTA File System by editing this file. Locate the filesystem bean in the beans.xml file:
<bean id="filesystem" class="com.coldcore.coloradoftp.plugin.cottafilesystem.CottaFileSystem"> <constructor-arg index="0" value="conf/cottafilesystem.xml"/> <constructor-arg index="1" ref="cottaFileFactory"/> <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. |
Note that the second argument in the constructor points to a COTTA File Factory, which defines an actual file system. To learn more about the COTTA project and the file system implementations it provides refer to the projects homepage at http://cotta.sourceforge.net
Return to Plug-in: COTTA File System