I'm thinking your problem is that chpasswd only works for existing users.
You could probably add newusers to your packages, and have your script
something like:
#!/bin/sh
echo "admin:admin:::Admin User:/home/admin:/bin/bash" | newusers
newusers takes a line that looks like an /etc/passwd entry,
On 21/11/2024 05:18, Aaron Rainbolt wrote:
On Fri, 15 Nov 2024 08:39:19 +0100
Roland Clobus wrote:
Before delving deeper into the code, could you post a minimal
configuration that shows the behaviour? Perhaps there are other ways
to achieve the same goal.
Hopefully, yes. I haven't lost tr