Comments (5)
Hugo,
Unfortunately, both a Unix account and a Samba account need to be created. The Unix account just needs to exist (no password need be set, even though it supports using a hash). The problem is really the Samba account, smbpasswd
doesn't support using a hash for creating a user and/or setting a user password.
from samba.
Yesterday I was invesitgating this a little, I found that using pdbedit I can export a samba users database in a format which smbpasswd accepts, using sudo pdbedit -L -w
The output is as follows:
user1:1003:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:28E0C29E023C2C686C0CA509E8A6B63C:[U ]:LCT-53BA5618:
user2:1005:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:BE73623B2CBBF997DD129A725F2592E7:[U ]:LCT-53E9E5FB:
user3:1002:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:14D4DB00CBE3C3551CB2CF890CD912C7:[U ]:LCT-53DB779F:
I'm not sure, I haven't tested it, but I think the hashes are the passwords, I will test it when I have some time to investigate, but if this are the password hashes we should be able to add this feature, as I understand from the manpage that smbpasswd can import this data.
from samba.
I've never used pbedit before, but if you get something working that I can
run in a script in the container, let me know. I'll be glad to add it. If I
come up with a way I'll add it in as well.
David P.
On Tue, Jun 16, 2015 at 4:09 AM, Hugo Chinchilla Carbonell <
[email protected]> wrote:
Yesterday I was invesitgating this a little, I found that using pdbedit I
can export a samba users database in a format which smbpasswd accepts,
using sudo pdbedit -L -wThe output is as follows:
user1:1003:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:28E0C29E023C2C686C0CA509E8A6B63C:[U ]:LCT-53BA5618:
user2:1005:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:BE73623B2CBBF997DD129A725F2592E7:[U ]:LCT-53E9E5FB:
user3:1002:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:14D4DB00CBE3C3551CB2CF890CD912C7:[U ]:LCT-53DB779F:I'm not sure, I haven't tested it, but I think the hashes are the
passwords, I will test it when I have some time to investigate, but if this
are the password hashes we should be able to add this feature, as I
understand from the manpage that smbpasswd can import this data.—
Reply to this email directly or view it on GitHub
#6 (comment).
from samba.
I did add an import option now, it's building now and should be available shortly. You'll have to share a smbpasswd file that's already created into the container and then use the -i </full/path/to/file/in/container>
to import it. Hope this solves your problem.
from samba.
Awesome, thank you very much!!
from samba.
Related Issues (20)
- Update to latest Samba version? HOT 4
- Samba libpopt.so.0 errors HOT 1
- Crash on Start HOT 1
- /usr/bin/samba.sh: line 160: $2: unbound variable HOT 2
- What's the purpose of the VOLUMEs in the Dockerfile? HOT 2
- cannot write files bigger than free space on / HOT 1
- mount error(2): No such file or directory
- create samba share with SMBv1 and multiple networks to separate old machine?
- Samba Server exit with HP Printer HOT 1
- Files are being deleted directly instead of being routed to the .deleted folder
- Samba is too new :x:
- Windows Docker Set up Failure
- Even with guest=yes, windows still ask for password HOT 1
- Problem with file permission
- #nowplaying on Audiomack
- dperson/samba - DockerHub image is 3 years old ... thus full of security holes HOT 2
- Database Import on SAMBA Server HOT 1
- libncurses6 : Depends: libtinfo6 (= 6.2+20201114-2+deb11u2) but 6.4-4 is to be installed HOT 1
- Quick on memory usage
- Question about port mapping HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samba.