-
I'm trying to set this up so When trying to list
Here's my services:
samba:
image: crazymax/samba
container_name: samba
hostname: samba.internal
networks:
external_v3:
ipv4_address: 192.168.3.132
volumes:
- "/mnt/data/container_data/samba:/data"
- "/home/user1:/home/user1"
- "/home/user2:/home/user2"
- "/mnt/data/shared:/mnt/shared"
environment:
- "TZ=UTC"
- "SAMBA_LOG_LEVEL=0"
restart: always and my auth:
- user: user1
group: user1
uid: 1000
gid: 1000
password: {{ password }}
- user: user2
group: user2
uid: 1001
gid: 1001
password: {{ password }}
global:
- "force user = shared"
- "force group = shared"
share:
- name: shared
path: /mnt/shared
browsable: yes
readonly: no
guestok: no
validusers: user1
writelist: user1
veto: no
- name: user1
path: /home/user1
browsable: yes
readonly: no
guestok: no
validusers: user1
writelist: user1
veto: no
- name: user2
path: /home/user2
browsable: yes
readonly: no
guestok: no
validusers: user2
writelist: user2
veto: no Normally this is what i have in my /etc/smb.conf (in my old setup)
The |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
Not sure if you saw this @crazy-max, bump |
Beta Was this translation helpful? Give feedback.
-
@dngray Can you post the logs of the container please? What kind of fs is |
Beta Was this translation helpful? Give feedback.
-
Sure.
It is a ZFS dataset ie Note that in the docker container Note currently |
Beta Was this translation helpful? Give feedback.
-
Oh ok so it works for |
Beta Was this translation helpful? Give feedback.
-
hmm. weirdly not now... I am sure it used to though.
Works.
It connects but can't seem to list. I see this in the log:
Which is kind of weird as the UID/GID should be 1001. The current user on my linux machine though is 1000 (ie that i am logged into).
No errors in the log.
To be expected as shared only has: validusers: user1
writelist: user1 Can I specify a group? I guess that doesn't really make sense inside the docker container. Both the users are in a shared group on the host though. Can I specify multiple users? |
Beta Was this translation helpful? Give feedback.
-
I never actually found a solution to this. |
Beta Was this translation helpful? Give feedback.
-
I got this working
services:
samba:
image: crazymax/samba
container_name: samba
network_mode: host
volumes:
- "/mnt/container_data/samba/data:/data"
- "/home/user1:/samba/user1"
- "/home/user2:/samba/user2"
- "/mnt/shared:/samba/shared"
environment:
- "SAMBA_LOG_LEVEL=0"
restart: always
|
Beta Was this translation helpful? Give feedback.
I got this working