Can nextcloud datafolder be shared with smb/samba?

Currently reading
Can nextcloud datafolder be shared with smb/samba?

Hi

I have a nas with DSM 7 and nextcloud installed with docker.

Is it possible to use the same directory to be shared by nextcloud and samba to save storage space and having to sync the data?
Access the same data it both ways

Permissions, are the first thing that comes to mind...

Does anyone know how to do this?

Thank you
 
I am not sure what you are looking for exactly, as host-sides of volume mounts alway have to be on a shared folder. What's stopping you from accessing such a share via cifs/smb?

Just create a new share and use this new share as the host side of your volume mount...
 
Upvote 0
Many images provide a UID/GID mapping, which will be used to execute the process inside a container. I am not sure if the NC image provides that feature, but if it does, then why not put nc in the same GID as your user group and if it's just about a single user: doe the same with the UID?

Out of pure lazines, I run most of my containers uing the UID/GID of my personal user, and I have no problems to access files via cifs from folders designated as docker data folders.
 
Upvote 0
the user of next cloud is http:http but that's a system user and doesn't show on users. At least I don't know how

using the cli, I can see that the next cloud folder is owned by http
1637441980063.png


and I know that one of the things that the automation does, is automatically set the folder permissions to http.

1637442118049.png



I'm comfortable in adding the smb user to the http group, but not comfortable to do the reverse.

guess the only way this would work, is if I add the share user, to the http group. the worst that can happen, is the http user get a delay of 5 minutes to see a newly created file...

like this:
1637442607414.png


what do you think?
 
Upvote 0
Before you do any of that, can you share which exact image you are using?

Docker container use their own UID/GID, which may or may not allign with existing users of the Docker host. Appearently it uses the same UID/GID which the http user on the host uses. So instead of tinkering with groups, wouldn't it make more sense to start the container with the UID/GID that matches as specific user on your host that preferably should have access to the folder?
 
Upvote 0

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

In fact, I run 99% in Portainer but with a docker-compose method that I would run either way via cli the...
Replies
12
Views
4,668
Wrong assumption on my side. Sorry. I am afraid someone else will need to answer that question.
Replies
20
Views
7,973
I could get into this command line business. Despite my doubts, it worked first time.
Replies
1
Views
2,399
Well NC is a platform for much more then a simple file access and management/sync. Guess they do overlap...
Replies
2
Views
6,703
  • Locked
And.......as soon as I posted this I solved it. If anyone stumbles across this post in the future, make...
Replies
1
Views
8,636
Is there a way to edit the email content being sent to internal users when a file is shared in Synology Drive?
Replies
0
Views
399
As long as you have the whole task backed up, you can set up a "new" task and relink to that archive, as...
Replies
49
Views
3,599

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top