Difference between revisions of "OS4X Enterprise - Fetch files from (S)FTP server"

From OS4X
Jump to navigation Jump to search
Line 15: Line 15:
 
The user running OS4X (configured in [[OS4X_Core_configuration#run_OS4X_programs_as_user|"Configuration" -> "Daemon" -> "Run OS4X programs as user"]]) must be added in the user group "fuse":
 
The user running OS4X (configured in [[OS4X_Core_configuration#run_OS4X_programs_as_user|"Configuration" -> "Daemon" -> "Run OS4X programs as user"]]) must be added in the user group "fuse":
 
  adduser www-data fuse
 
  adduser www-data fuse
 +
 +
== Change permissions of /dev/fuse ==
 +
By default, the required device file "<code>/dev/fuse</code>" is only writable by user "<code>root</code>". We need to extend the permissions:
 +
chgrp fuse /dev/fuse
 +
chmod g+rw /dev/fuse

Revision as of 09:29, 27 May 2014

OS4X offers an easy way to create OS4X Enterprise receive jobs from FTP server content. This solution is based on two mechanisms:

  • Mount remote server directory as a local directory
  • Configure the OS4X Directory Scanner to that mounted directory

This documentation covers all technical aspects to implement a functionality to automatically fetch new files from an (S)FTP server.

Assumption

All details explained here are based on the freely available pre-installed OS4X VMware virtualized image, which is also available for other virtualization solutions via OVA. In general, all solutions explained here can be used in any modern Linux environment. All steps explained here must be executed as user "root" unless any other documentation states to switch user context.

Install required packages

You need to install the following packages for (S)FTP mounting:

apt-get -y install sshfs curlftpfs

Change user group membership

The user running OS4X (configured in "Configuration" -> "Daemon" -> "Run OS4X programs as user") must be added in the user group "fuse":

adduser www-data fuse

Change permissions of /dev/fuse

By default, the required device file "/dev/fuse" is only writable by user "root". We need to extend the permissions:

chgrp fuse /dev/fuse
chmod g+rw /dev/fuse