-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hello!
this .yml works fine:
services:
samba:
image: dockurr/samba
container_name: samba
environment:
NAME: "Data"
USER: "user"
PASS: "pw"
ports:
- "445:445"
volumes:
- /my_dir:/storage
- ./config:/config
restart: always
but when I try to use users.conf like this:
services:
samba:
image: dockurr/samba
container_name: samba
environment:
NAME: "Data"
ports:
- "445:445"
volumes:
- /my_dir:/storage
- ./config:/config
- ./users.conf:/etc/samba/users.conf
restart: always
where users.conf:
#username:UID:groupname:GID:password:homedir
user:1000:group:1000:pw:storage
user2:1001:group:1000:pw:storage
I can't access the storage. I have tried all kinds of different permission on /my_dir:
sudo chmod 775 /my_dir
sudo chmod g+s /my_dir
sudo chmod g+w /my_dir
sudo chown -R 1000:1000 /my_dir
sudo chmod -R 775 /my_dir
Note: I've only tested userwith users.conf, haven't even tried user2.
There's probably something fundemental I'm missing, I'm quite new to linux/docker/hosting. I would appreciate any guidance where I'm going wrong!
This is the logs from docker compose:
samba | create_connection_session_info: user 'user' (from session setup) not permitted to access this share (Data)
samba | make_connection_snum: create_connection_session_info failed: NT_STATUS_ACCESS_DENIED
If there any help I have a Proxmox VE running Ubuntu Serveron a KVM with several other containers up and running.
I have no idea what's wrong, but my best guess is that the mapping between the (virtualized) host permissions and container users/groups is not working. Feel free to correct me!
Metadata
Metadata
Assignees
Labels
No labels