docker-compose up -d
https://github.com/ServerContainers/samba/blob/master/README.md
- ACCOUNT_username
- multiple variables/accounts possible
- adds a new user account with the given username and the env value as password
to restrict access of volumes you can add the following to your samba volume config:
valid users = alice; invalid users = bob;
-
SAMBA_CONF_WORKGROUP
- default: WORKGROUP
-
SAMBA_CONF_SERVER_STRING
- default: file server
-
SAMBA_CONF_MAP_TO_GUEST
- default: Bad User
-
SAMBA_CONF_ENABLE_PASSWORD_SYNC
- default not set - if set password sync is enabled
-
SAMBA_CONF_ENABLE_NTLM_AUTH
- default not set - if set password sync is enabled
- use for compatibility with xp if you have troubles like NTLMv1 passwords NOT PERMITTED for user
- !!! NOTE: NTLMv1 is known to be broken and it's easy to recover the real password from the hash !!!
-
SAMBA_VOLUME_CONFIG_myconfigname
- adds a new samba volume configuration
- multiple variables/confgurations possible by adding unique configname to SAMBA_VOLUME_CONFIG_
- examples
- "[My Share]; path=/shares/myshare; guest ok = no; read only = no; browseable = yes"
- "[Guest Share]; path=/shares/guests; guest ok = yes; read only = no; browseable = yes"