I am just learning php and am trying to create a web based application for users of my email system to be able to change their passwords. I am running twig, and the password is their system password for logging on to ftp, ssh, and email.
Printable View
I am just learning php and am trying to create a web based application for users of my email system to be able to change their passwords. I am running twig, and the password is their system password for logging on to ftp, ssh, and email.
twig? is that some form of encyption?
let me look at my snippets to see if I have something
Twig is a php based email system.. here is the link if you would like to see it. I really just want a php script that will change a users password over the web. Twig verifies users through linux, not a database, so I need to change a users password in linux not a database.
http://twig.screwdriver.net
well you do need a database
Quote:
REQUIREMENTS
For TWIG to function you need the following:
A web server (Apache is recommended)
A supported database server (see below for details)
PHP 3.0.12 or greater with support for IMAP and your database software
so look where it is storing the password in the database table. all the fiels are .php3 so it can't store it unless it is a form of database. are you running Mysql or something else?
Yes.. I know.. twig is not my problem.. twig is working great and has been for several months now... i wish to give users access to change their password over the web. All I want is a php script to change the password in linux.
The username and password is not stored in the database... user settings are stored in the database... (yes its mysql).. i need php to actually access a user in linux and change that information.. I'm just not sure if this is even possibly through php.
then what file is the password being stored? it has to be in a file or it isn't stored. maybe a cookie? maybe a session? but if it has to do with the email program I can almost garunteed that it is on the database.
but you say in linux? like they are signing on to linux as the root does when goes on? maybe I don't understand what you mean by "in Linux".....
Twig logs you in by pulling your information from the system account. So if you login to the terminal and change your password that way, it would reflect that when you logged in from the web interface and checked your email. So I need to create a PHP script that will change the system password.
ok, now that we are talking about the system password then there is no way. just think if I could, then I can just run some code and change everybodies password that runs linux.
not possible.... sorry
Well thanks for your help.. I appreciate it