Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

reset user password remotely

Discussion in 'General Discussion' started by ircmaxell, Jul 28, 2006.

  1. ircmaxell

    ircmaxell Member

    Mar 20, 2006
    Likes Received:
    Trophy Points:
    I need the functionality for users to both change and reset passwords automatically from the front end of my site. For the password change, they would be required to send the old password for verification. For reset passwords, the server automatically generates a new password for the front end of the site. I need to get those passwords into whm to change the password. I've looked into reverse engineering the scripts, and have no idea. Any help?
  2. webignition

    webignition Well-Known Member

    Jan 22, 2005
    Likes Received:
    Trophy Points:
    /scripts/chpass should let you change a user's password from the command line.

    Give this a go and see if it works. If so, you could write a wrapper to allow the functionality to be included in your own site.

    If you can also write a script to validate the existing password, which would simply involve md5ing the user's entry and comparing it to the relevant record in /etc/shadow, then you should also be able to integrate this into your own site (this method is just a guess but it's probably not too far off).

    I've posted an article explaining how to you can extend WHM's remote access features through PHP. So long as you can write server-side scripts to perform the necessary tasks, the article will cover how to integrate the functionality into your own site.

    HOW TO: Create your own remote access features in PHP
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice