Avatar of Balbir Singh
Balbir Singh
Flag for United States of America asked on

How to let a web application use the user credential of /etc/passwd for authentication purpose?

Basically, I want same a user to use same id and password to login to web based and ssh login both. I am wondering if there is a better way to do it. What is industry standard to solve a situation when a user can use same credential to login via ssh and web.
PHPSSH / Telnet SoftwareApache Web Server

Avatar of undefined
Last Comment
Scott Fell

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David Favor

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Scott Fell

I would advise against this. Keep your log in for your web app separate from getting into the server. If anything, try using social log in.

Check out https://www.oauthlogin.com/ or https://hybridauth.github.io/. There are plenty of others too. There is also plenty of code out there for creating a log in system of your own including forgot password or forcing some type of authenticator or verification through sms or email.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck