Quote:
Originally Posted by aznium
i have no --stdin option
is it possible somehow to do it in C then? call the passwd and change the password?
i can of course write directly to /etc/passwd and /etc/shadow but i want to avoid that and use the passwd command if possible
|
Its possible, if you can get the source code for passwd.
Change it according to your needs, compile it, name it a different name, eg mypasswd, then call it from your script.