Skip to content

samba-dc : invalid permissions on directory '/var/run/samba/nmbd': has 0750 should be 0755 #254

Description

@Xenoxis

Hello, i've tried to install your image samba-dc using the example docker-compose file, but after provisionning the dc, samba keep a issue with permissions in /var/run/samba, and keep failing.

The full report :

samba version 4.21.4 started.

Copyright Andrew Tridgell and the Samba Team 1992-2024

invalid permissions on directory '/var/run/samba/nmbd': has 0750 should be 0755

task_server_terminate: task_server_terminate: [nbtd failed to start unexpected_server]

samba_terminate: samba_terminate of samba 1: nbtd failed to start unexpected_server

I've tried image version 4.21.4-r4 and the latest one (4.22.6-r0)
Obviously, i haven't bind any volumes on /var/run/samba

My docker-compose file :

addc:
    image: instantlinux/samba-dc:4.21.4-r4
    container_name: samba_addc
    network_mode: host
    restart: unless-stopped
    hostname: dc.example.local"
    environment: 
      DOMAIN_ACTION: "provision"
      REALM: "example.local"
    cap_add:
      - CAP_SYS_ADMIN
    ports:
      - 53:53
      - 53:53/udp
      - 88:88
      - 88:88/udp
      - 135:135
      - 137-138:137-138/udp
      - 139:139
      - 389:389
      - 389:389/udp
      - 445:445
      - 464:464
      - 464:464/udp
      - 636:636
      - 3268-3269:3268-3269
      - 49152-65535
    volumes:
      - addc_etc:/etc/samba
      - addc_lib:/var/lib/samba
      - ./samba-cache:/var/cache/samba
    #command: "samba --configfile=/etc/samba/smb.conf --foreground --debug-stdout -d 1 --no-process-group"
    #entrypoint: "sh"
    tty: true
    stdin_open: true
    secrets:
      - samba-admin-password

volumes:
  addc_etc:
  addc_lib:
secrets:
  samba-admin-password:
    file: "/media/password"

Tried with priviledged: true, but not working either

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions