Hi,
RR> one thing you could do is write directly to passwd and smbpasswd. You
RR> just have to find a lib, that has the needed hash-functions.
RR> But what are the reasons for not calling these functions?
What do you mean with "calling these functions"?
Is there a way to use passwd or something like this directly in c?
What I want to do is writing a gui which can create user-accounts.
Now I found a solution but it is not nice...
For creating the "passwd"-entry I use a work-around with "chpasswd",
which reads pass/user from a file...This is of course very unsecure :(
Anyone has a better idea? I just need a way to write via stdin to
"passwd" or "chpasswd" or whatever...
With "smbpasswd" it works good because I found out that there is a
flag "-s" that enables the tool to read from stdin.
Bye.