Table of Contents

Remote Mount Plugin For OMV6

Remote Mount Plugin For OMV6



Summary

Remote Mount is a plugin that's designed to mount a remote network share, in a manner which makes the resultant file system appear to be a local filesystem on an OMV6 server. This capability makes makes connections to remote OMV servers, non-OMV servers, and Client network shares possible. When remote shares are mounted locally, many desirable administrative operations are possible.

Potential Uses for Remote Mount

Prerequisites

Installation

In OMV6's GUI:
Under System, Plugins, find and highlight openmediavault-remotemount 6.X, and click the install button.

Configuration

Setting up a "Remote Mount"

In the example provided, an OMV6 Virtual Machine is being used to backup a network share that exists on the Primary LAN server. (Where the term “remote” is used, in this example, it will be in reference to the Primary server.)

As previously noted, to create a Remote Mount'ed file system, it's necessary to have a username and password to the remote network share that has, at a minimum, “read access”. In a case where a remote share is being replicated, read only access is preferred. With read only access, the Backup Device can not manipulate, delete, or otherwise alter data on the Primary server. It can only “read” the data.


In the example following, the Primary (remote) Server is another installation of OMV6 on the local LAN. The share to be accessed is Music.

In this specific example, a username and password was created on the Primary OMV Server to facilitate replicating shares. The user was installed under Access Rights Management, User. The user was named backup-r . The -r makes the username unique and provides a visual indicator, in the Remote Mount dialog box, that the user is on the remote server. Finally note that all new users installed under Access Rights Management, User are added to the group “users” by default.



On the Primary server:

Under Access Rights Management, Shared Folders:

Click on the Music shared folder to highlight it, and the ACL button.



The following shows permissions on the Primary server, for the Music share:

Shared Folder permissions, set this way, are appropriate for a media share. They lay the foundation to allow network “GuestsRead access to the top level SMB Music share.


In the above, note that the group users have “Write” access to the Music share. In this instance, Write access is more than is needed, so the ACL line shown was used to further restrict the access of one specific user, backup-r, to “Read only”.

Important. This is a very limited use of an ACL.
In the interests of clarity, when mixing ACL's with standard Linux (Posix) permissions; ACL's can be used to further restrict access, but they can't be used to override basic file / folder permissions to give “more” or “increased” access.
In this very limited use case, the username backup-r is being further restricted, by ACL, to “read only”. This allows the remaining members of the group users to retain the write permission.



While off-topic, a few things should be discussed regarding OMV's users and access control:


A list of existing system usernames is provided at the end of this document, under OMV's Pre-configured and System User Names.
Further information, regarding file and folder permissions, network share access, etc., is available in the NAS permissions document.


At the Backup Server:
Under Storage, Remote Mount, click the +Add button.




Click on Save

Notes:
In other use cases, where a non-OMV NAS server is used (a QNAP or other type of NAS appliance, etc:)


Confirm the Mount:

Under Storage, File Systems, note the new device with the Filesystem type cifs that is Online.

The remote network share Music, on the Primary Server, is now mounted as if it's a local file system. This mount is subject only to the access level and restrictions of the username and password that was used to mount it. The reasoning behind accessing the remote share with a username and password, that has “read only” access may now be apparent. If a remote share is mounted with write access, it would be possible to alter or delete files on the Primary Server's Music share.

Note:
If there will be several Remote Mounts, if needed for mount identification purposes, use the column select Icon.

Select / Add the Label column to the File Systems view.
The Label column will display the Remote Mount's name.

This concludes the installation and configuration of the Remote Mount plugin.

For users who are interested in using Remote Mount to create a backup server, the OMV5 version of the → Remote Mount document discusses creating Shared Folders and using Rsync for replicating network shares to a backup server. The OMV6 version of Server to Server Backup will be coming soon.

OMV's Pre-configured and System User Names




The user pi is a default user on Raspberry PI's only.

This list is not all inclusive. It's worth noting that many software packages will install system users to enable a package to interact with the OS.


Source Code

Source Code


A Closing Note

We, who support the openmediavault project, hope you’ve found this guide to be useful and that you’ll find your openmediavault server to be efficient, easy to use, and enjoyable.

If you found this plugin guide to be helpful, please consider a modest donation to support the hosting costs of this server.

OMV-Extras.org



Venmo: ryecoaaron