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

Create Dockerfile #12

Open
0x3333 opened this issue Apr 26, 2020 · 1 comment
Open

Create Dockerfile #12

0x3333 opened this issue Apr 26, 2020 · 1 comment

Comments

@0x3333
Copy link
Owner

0x3333 commented Apr 26, 2020

Create a Dockerfile to run in a container. Need to check how to handle smbpasswd from inside the container.

@ajabep
Copy link

ajabep commented Jul 8, 2023

It's possible to change a password from another container using the smbpasswd -r and -U options and using a network binding :)
However, when an account password is expired, it's no longer possible to change it remotely. (see https://lists.samba.org/archive/samba/2014-October/186220.html ; I experienced the same issue nowadays).

It should also be fine to change the password by binding the same volumes, but, I need to check it. However, (1) smbpasswd needs to be run using root user, (2) it does not check the old password and (3) it requires BOTH the database (in /var/lib/samba) and the configuration (in /etc/samba).

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

No branches or pull requests

2 participants