OrangeHairedBoy Posted May 13, 2004 Posted May 13, 2004 Hi all, I'm thinking about moving one of my clients to TCH - they're a distance learning college which has an online campus. All the students have an account and a POP3 box. The current site requires the students to change passwords every 90 days for secuity reasons, and when they do, their pop3 password is updated as well. Is there a way to have a PHP script change a user's POP3 password using a shell call or something? That is an absolute must if the college is to move to TCH. Thanks! Lewis Quote
jandafields Posted June 9, 2004 Posted June 9, 2004 There is no built-in programs to do this. However, since you have access to the shadow password directory of your users, you could write a php script that accepts a new password as input, computes the crypt-hash, and replaces the old hash with the new one. Quote
DarqFlare Posted June 9, 2004 Posted June 9, 2004 One thing to note is that you cannot execute shell commands. Quote
jandafields Posted June 9, 2004 Posted June 9, 2004 I meant by using a php script to do this, not shell access. Quote
DarqFlare Posted June 10, 2004 Posted June 10, 2004 This has been discussed in other threads, but ANY kind of shell command, even if it's executed via a PHP script. Quote
jandafields Posted June 10, 2004 Posted June 10, 2004 TCHRobert- Most commercial php scripts have server scripts. Like the popular Gallery and Coppermine picture galleries, SquirrelMail, etc. All these programs have php's exec() command, which runs server commands. And, these programs are encouraged here in the forums. Also, here is a quote taken from http://www.totalchoicehosting.com/forums/i...showtopic=10623 Posted by Head Guru:...If your scripts make server calls, fine. But if they cause issues, we will deal with it!... I have not attempted to create the script that changes passwords, because I do not have any used for it. But let's say that the person that started this thread does, would that be against policy? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.