The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

globally change the account password -- possible?

Discussion in 'General Discussion' started by iconraul, Sep 27, 2006.

  1. iconraul

    iconraul Member

    Joined:
    Mar 14, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    The company I work with maintains several websites and mail services for our clients. We maintain standard password for several sites.

    The problem is regular password updates set us back a couple of hour trying to change the password via WHM. Is there a way/tool/WHM-hidden-feature that will allow us to do password change globally -- except for the root account of course.
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    There's no global 'reset all account passwords' feature, as far as I am aware. However, this could be achieved with a spot of scripting if you know what you're doing.

    The directory /var/cpanel/users contains a set of files pertaining to user data, each of which is named the same as the account to which it applies - this would get you a list of all cPanel account usernames.

    Combine this with a secure wrapper for cPanel that authenticates with the given username and the root password, your script can loop through the list of usernames and change the password for all of them much more quickly.

    So yes it's possible and yes it's entirely feasible.
     
  3. iconraul

    iconraul Member

    Joined:
    Mar 14, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    that would mean changing shell, mysql, ftp passwd, etc.

    thanks!
     
Loading...

Share This Page