I have installed OMV+Nextcloud based on the youtube tutorials of Techno Dad Life.
In OMV i've enabled smb/cifs to get network access to the shared folders.
What do I have to set up to get access to the same folders in Nextcloud?
You just need to install and configure the "External storage support" app.
Thank you MrC for your quick reply.
I've already tried some settings but did't got it to work.
I've tried it as follows:
- Created users with the same username/password as the corresponding user in OMV
- Created a "home" group and added users to it that should have access to their home folder in Nextcloud
- Enabled the "External Storage" app
- Went to Admin -> External Storage and added a new entry as follows
- Folder name: "NAS Home"
- External storage: SMB / CIFS
- Authentication: Log-in credentials, save in session
- Configuration: Host = localhost, Share = home (Remote subfolder and Domain left blank)
- Available for: home(group)
- Under Advanced settings for this entry:
- Enable previews
- Check for changes: Once every direct access
This resulted in a red exclamation mark. When I try to access to the "NAS Home" folder it shows:
External mount error
There was an error with message: Empty response from the server. Do you want to review mount point config in admin settings page?
Remember to use the "Container path" as defined started the container.
What do you mean?
For what should I use the "Container path"?
In the OMV Nextcloud Docker container there are two "Container path's": "/config" and "/data".
Or has it something to do with the extra arguments: "--network my-net"
Now it works.
I tried to add external storage as describe.
It works, I can see my external storage in the main page.
But when I go to the folder I have a message that said "you don't have permission to upload or create files here".
I tried to change privileges in OMV without success. I don't understand where the problem is.
Sorry I am a bit noob and I'm french (so sorry for my english and I hope that you understood my problem).
Which user (PGID/PUID) did you specifiy when setting up your nc-docker?
Which user owns the shared folder and how are the permissions set?
For the configuration I followed a tutorial and in nextcloud in docker I didn't put any (PGID/PUID) only in Mariadb (PGID 100 , PUID 1000). Do I have to do the same in nextcloud?
For the shared folder I set permission for me and admin...
I set PUID and PGID same as mariadb (PGID 100 , PUID 1000) and also TZ.
But no change... can't do anything in my storage file...
I'm a bit lost
How to see wich user have the rights for my file?
If you log in via shell (e.g. Putty or Shellinabox) locate the parent folder via the cd - command and the use the ls -l - command
OK so the user is me...
Do I have to create a new user (the one I created in Mariadb) to be the owner of this folder?
what does the ls command say about the permissions of the folder?
Here what it says:
drwxrwsr-x+ 2 Damien users 4096 mai 24 08:25 médias
(Damien is me as user)
And many thanks for your help and your time !
You could try chmod -R 777 médias, but it should not be neccessary if the owner of the folder and your nextcloud user are identical.
I'm stuck with my problem.
Thanks for your help.
IT WORKS !!! I don't know what I've done but it's ok now !!!
Where are you configuring the settings in picture 1? I can't find it in the OMV admin, but maybe that is because I am on version 5. Or is it from a different admin interface?