Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-30-2006, 05:23 AM   #1
Registered: Apr 2006
Distribution: Fedora
Posts: 33

Rep: Reputation: 15
PHP web authentication using system accounts


what i would like to know is how to use php for authenticating system users through web. ie, the user will enter the username/password in a web form and the php in the server should use the server system user account and password to authenticate the user.

First I tried to run
su command to do the trick. but the command says that the standard in must be a tty, but php doesn't support pseudo terminals by default.

Then i pathched the php source with PTY support froMichael Spectorm of It seem not to work properly. Does anyone have a better idea or have done this properly? My code doesn't seem to work the same always...

kindly help...

Old 04-30-2006, 10:53 PM   #2
Registered: Jul 2004
Location: louisiana
Distribution: fedora 4/kubuntu
Posts: 116

Rep: Reputation: 15
Have you looked into using PAM?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache web page authentication problem jitheshmurali Linux - General 3 04-01-2006 02:51 PM
List all user accounts on a system? bullium Linux - General 2 04-18-2005 10:07 AM
SquirrelMail authenticate with system accounts paul_mat Slackware 2 03-16-2005 07:54 AM
Using KMail to access web-based accounts like hotmail, yahoo, gmail etc? cajunaggie Linux - Software 7 09-19-2004 04:38 AM
Web-viewable ftp-accounts cL4YmAN Linux - Newbie 7 06-06-2004 01:35 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration