|Plugin Label||FS Mount|
|Short Description||Mount a remote location on the file system before accessing the workspace|
|Author||Charles du Jeu|
Linux Only : Generic purpose meta plugin that is triggered before the repository is opened, and can be configured to mount any filesystem and unmount it when the user either switch to another repository or logs out.
Update: version 6.2.1
Due to security reason, we removed 'sudo' parameter on version 6.2.0 and use 'udevil' as an alternative. udevil is a command line program which mounts and unmounts removable devices without requirement of 'sudo'. For more information: https://ignorantguru.github.io/udevil/
Debian 8 / Ubuntu 14:
sudo apt-get install udevil
Can use self-extracting installer: bash udevil-x.x.x-installer.sh See: https://ignorantguru.github.io/udevil/
After installation, you can configure udevil in /etc/udevil/udevil.conf to allow mount points and protocols
Testing by using command to mount in terminal
udevil mount smb://email@example.com/share /media/test/abc
udevil umount smb://firstname.lastname@example.org/share /media/test/abc
Note: Make sure that the permission of mount point should be owned by apache when you test from Pydio.
Warning: Passing password via system evr PASSWD is not supported in 'udevil'.
If you have permissions issues, you can use the "sudo" parameter to sudo all system operations. In that case, make sure to set the sudoers permission accordingly: apache user (www-data or httpd generaly) must be allowed to perform a mount operation using sudo.
To strengthen the security, use the parameter to pass password via the system environment and not via the command line itself. Sudo file must also be adapted to be allowed for that ( something like defaults@pydio-*-app* env_keep += "PASSWD").
|FS Type *|
|Filesystem Type, will be used for the -t option of the mount command||String||cifs|
|Call the mount/umount commands through devil, must be configured on the server||Boolean||false|
|Remote Path *|
|Path to the remote share to mount, use //123.456.789.654/path you can use AJXP_USER||String|
|Mount Point *|
|Mount Path, use AJXP_USER||String|
|Used with the -o command option, use AJXP_USER, AJXP_PASS, AJXP_SERVER_UID, AJXP_SERVER_GID||String||user=AJXP_USER,pass=AJXP_PASS,uid=AJXP_SERVER_UID,gid=AJXP_SERVER_GID|
|Pass Password via environment instead of command line|
|Instead of setting password through the AJXP_PASS variable in mount options, pass it through the environment variables. Sudo file must be changed accordingly.||Boolean||false|
|Additional result codes to accept as success|
|On some setup result code 32 is often an already mounted code and we want to consider this as a success. Add comma-separated list of codes.||String||32|
|Remove mount point on unmount|
|Delete mount folder on unmount. Can be required for security reasons.||Boolean||false|
|User name - Can be overriden on a per-user basis (see users 'Personal Data' tab)||String|
|User password - Can be overriden on a per-user basis.||Password|
|Try to use the current Pydio user credentials for connecting. Warning, the AJXP_SESSION_SET_CREDENTIALS config must be set to true!||Boolean||false|