1

I'm writing a bash script, and I need to validate when a user enters their unix username and password, that it's the same username and password they use to login. I was thinking of calling login, but I can't find a way to get it to exit immediately returning 0 (success) instead of spawning their normal shell.

Is there another command I can use? Any other ideas?

2

1 Answer 1

1

A lot of possible answers and programming/script languages are here including bash also.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .