Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems changing owner/group in docker compose #438

Open
Rubiooo04 opened this issue May 24, 2023 · 1 comment
Open

Problems changing owner/group in docker compose #438

Rubiooo04 opened this issue May 24, 2023 · 1 comment

Comments

@Rubiooo04
Copy link

Describe the bug

Hello!!

I wanted to change the group and owner of the files that samba manages using the corresponding environment variables but this still does not pay attention to me

Docker-Compose

    environment:
      - USERID=1000
      - GROUPID=1000

Screenshot

(click to see the Screenshot)

SMB ERROR

What have I tried for that?

I have tried using the environment variables

      -PUID=1000
      -PGID=1000

but still ignore me and in other services that ID works for me

@pczekalski
Copy link

pczekalski commented Jun 29, 2023

You may need to change physical ownership of the files on the host machine (where you store your files physically) using chown, i.e.:

  1. Shut down container (not needed but ensures there are no access problems)
  2. chown 1000:1000 <yourpathtosmbvolumeonhostmachine> --recursive
  3. Start container

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants