I have a program that verifies a users password to the content of /etc/passwd. How do I port this to Interix?
Use the API setuser() instead. One of the flags you can pass to the setuser() API is SU_CHECK to verify a password. When you want to actually change the user we recommend you use setuser() with the SU_COMPLETE flag rather than a set of setuid(), seteuid(), setgid() and setegid() API calls because it is faster and with create a better security token.
Related Questions
- I want to set a users password using the Unix passwd command, but how do I script that? It doesn read standard input!
- I have a program that verifies a users password to the content of /etc/passwd. How do I port this to Interix?
- Is possible to program a device over the serial port with SDFlash if it is password protected?