8 Apr
2002
8 Apr
'02
19:41
Hi, one thing you could do is write directly to passwd and smbpasswd. You just have to find a lib, that has the needed hash-functions. But what are the reasons for not calling these functions? Best regards, Ralf Ronneburger da_bug@gmx.net wrote:
Hi!
Does anybody know how I can use "passwd" and "smbpasswd" to set user-passwords in a c-program? I cannot write to these tools via stdin because of security reasons... Libexpect could be a solution but I didn't find any good example source that helped me..(anyone knows one?) Every possible way would be good, I just want to make /etc/passwd and /etc/smbpasswd-entrys out of my two c-strings for username & password.
Thanks for any help.