Recently I decided to extend the functionality of my home server, so I could change my FreeBSD password through the web interface I put together. A little research led me to the manual page of pw, and I found exactly what I needed.
However, I have trouble recognizing what form the "-h fd" part should take.
Once I have the new password in a variable, what do I do to pass that over to pw through a file-descriptor?
Could someone give me an example or a hint of how this is supposed to be implemented in perl or the bourne shell?
pw usermod -n johnsmith -h fd
However, I have trouble recognizing what form the "-h fd" part should take.
Once I have the new password in a variable, what do I do to pass that over to pw through a file-descriptor?
Could someone give me an example or a hint of how this is supposed to be implemented in perl or the bourne shell?