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?

1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.