ServerContainers / samba

samba - (ghcr.io/servercontainers/samba) (+ optional zeroconf, wsdd2 & time machine) on alpine [x86 + arm]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why I can't create file?

GF-Huang opened this issue · comments

image

Logs
samba_avahi_wsdd2  | >> SAMBA: print whole smb.conf
samba_avahi_wsdd2  | ############################### START ####################################
samba_avahi_wsdd2  | [global]
samba_avahi_wsdd2  |    server role = standalone server
samba_avahi_wsdd2  |    log file = /dev/stdout
samba_avahi_wsdd2  |    dns proxy = no 
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  |    # password stuff
samba_avahi_wsdd2  |    passdb backend = smbpasswd
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  |    obey pam restrictions = yes
samba_avahi_wsdd2  |    security = user
samba_avahi_wsdd2  |    printcap name = /dev/null
samba_avahi_wsdd2  |    load printers = no
samba_avahi_wsdd2  |    dns proxy = no
samba_avahi_wsdd2  |    wide links = yes
samba_avahi_wsdd2  |    follow symlinks = yes
samba_avahi_wsdd2  |    unix extensions = no
samba_avahi_wsdd2  |    acl allow execute always = yes
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  |    # MacOS Compatibility options
samba_avahi_wsdd2  |    vfs objects = catia fruit streams_xattr
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  |    # Special configuration for Apple's Time Machine
samba_avahi_wsdd2  |    fruit:model = TimeCapsule
samba_avahi_wsdd2  |    fruit:aapl = yes
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  |    # Docker Envs global config options
samba_avahi_wsdd2  |    log level = 3
samba_avahi_wsdd2  |    workgroup = WORKGROUP
samba_avahi_wsdd2  |    server string = Samba Server
samba_avahi_wsdd2  |    map to guest = Bad User
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  | [局域网共享]
samba_avahi_wsdd2  | path = /shared
samba_avahi_wsdd2  | read only = no
samba_avahi_wsdd2  | browseable = yes
samba_avahi_wsdd2  | valid users = pi
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  | 
samba_avahi_wsdd2  | ############################### END ####################################

Solved by create the shared folder via user pi manually instead of created by sudo docker compose up.

you need to fix permissions on your host share - a simple chmod 777 -R /share/on/host will give everyone permissions on the share - you should figure out what permissions you need - that's why you can create users and groups using ENV variables