SMB Client Nextcloud via Freenas

corey.lafaei

Dabbler
Joined
Apr 11, 2018
Messages
10
Hello, how do I enable SMBCLIENT through Freenas for Nextcloud. Not sure how to do and i haven't had to do much editing before to make it work. I'm working from a new install of Freenas & Nextcloud.
 

Attachments

  • 3.PNG
    3.PNG
    18.5 KB · Views: 1,219

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Hello, how do I enable SMBCLIENT through Freenas for Nextcloud. Not sure how to do and i haven't had to do much editing before to make it work. I'm working from a new install of Freenas & Nextcloud.

Nextcloud on: Jail? VM? Baremetal?

Server Specs?

FreeNAS version?

Is your question how to map the share inside Nextcloud?
 

corey.lafaei

Dabbler
Joined
Apr 11, 2018
Messages
10
Hello, Next-cloud v15 has been installed through Freenas v11.2 in the available plugins menu as a Jail.

Server Spec - AMD Fx(tm)-8350 Eight Core Processor 4.00 Ghz 20GB Memory

I have next cloud set up and working. My question is how do I enable SMBCLIENT for Nextcloud as it wasn't enabled/installed from the available plugins on Freenas
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
It has been awhile since I run a plugin, but if not mistake you don't need to do that. You can add the folder to the jail storage, to a mount point, and will be available for you to use it.

Check: Additional Storage
 
Last edited:

corey.lafaei

Dabbler
Joined
Apr 11, 2018
Messages
10
It has been awhile since I run a plugin, but if not mistake you don't need to do that. You can add the folder to the jail storage, to a mount point, and will be available for you to use it.

Check: Additional Storage
I had mounted originally in the jail; but I won't allow me to upload or create in the shared mount. I've attached a picture.
 

Attachments

  • 2.PNG
    2.PNG
    4.1 KB · Views: 1,223

ascl

Dabbler
Joined
Jan 30, 2019
Messages
26
Definitely do the direct mount inside the jail, not via SMB, you will just need to make sure your permissions are viable. I generally do this by ensuring the user inside the jail that runs the software is in a group that has writable permissions for that folder. For example, I have a dedicated dataset for downloads, with permissions like this:
Code:
# ls -dla /mnt/Jails/Downloads
drwxrwxr-x  4 xxx  sharedfiles  4 Feb 15 06:05 /mnt/Jails/Downloads


Note the group "sharedfiles" has write access to the directory. You do need to be careful with permissions, as you (probably) don't want everything writable by everyone, but regardless of how you make files/directories available to the jail, you need to care about the permissions (ie this is true when using a CIFS/Samba mount as well).

In my case I want multiple jails to have write-access to this folder (ie downloads then post-processing).
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I had mounted originally in the jail; but I won't allow me to upload or create in the shared mount.

Storage > Pool on the left
Expand the volume until you see the directory you are storing the files and have added to the plugin
Click the three dots on the right of its name
Click Edit Permission

1550273849984.png


Check if Windows is selected
Check if the user and group are yours
Click Apply permissions recursevely
Click Save

1550273949002.png


Check your access
 

corey.lafaei

Dabbler
Joined
Apr 11, 2018
Messages
10
Storage > Pool on the left
Expand the volume until you see the directory you are storing the files and have added to the plugin
Click the three dots on the right of its name
Click Edit Permission

View attachment 28449

Check if Windows is selected
Check if the user and group are yours
Click Apply permissions recursevely
Click Save

View attachment 28450

Check your access

Thank you; in the end I set the user to Everybody, and No group for the group Unix. It's working both on the Share & Nextcloud.
 
Top