Skip to content

Trouble making a shared space #73

Answered by dngray
dngray asked this question in Q&A
Discussion options

You must be logged in to vote

I got this working

  • Correct syntax is a comma for multiple users
  • Remove the global definition if you want to login with more than one account
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
auth:
  - user: user1
    group: user1
    uid: 1000
    gid: 1000
    password: xxxxx
  - user: user2
    group: user2
    uid: 1001
    gid: 1001
    password: xxxxx

#global:
#  - "force user = user1"
#  - "force group = user1…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crazy-max
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4 on August 13, 2023 15:03.