Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have a program that verifies a users password to the content of /etc/passwd. How do I port this to Interix?

0
Posted

I have a program that verifies a users password to the content of /etc/passwd. How do I port this to Interix?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123