Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a portal where I am saving user passwords and names, privileges in an mysql table. The interface is web based, with apache+php+mysql.
Some of the service like access to various databases are available to users through web interface. Password-change facility has been given to the users wherein the password in the mysql table is changes through a mysql query (through php). Fairly easy to impelement.
But there are some services which use system accounts. Thus each user has two accounts. One in the mysql database and the other in the system. Highly undesirable and irregular.
I was thinking of running a shell script (from php) which will set the system password to the new password given by the user. Thus whenever the user changes his password, it will be changed in both the places - giving him a feeling that there is only one account.
The shell script which would change the user password in the system account seems to be a tough nut to crack. I have searched this very forum without success.