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.

postwwwacct and password

Discussion in 'General Discussion' started by sparek-3, Nov 22, 2004.

  1. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,384
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Is there anyway to retrieve the password that an account was setup with, using /scripts/postwwwacct ? The wwwacct script calls postwwwacct with the @ARGV array. The password should be in the 3rd element of that array, but its of the form fd:3:6. Is there anyway to determine what password was used to setup the account?

    Thanks
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    The wwwacct script doesn't pass the IP address or the password which is why I edited my wwwacct script.

    Around line 1521 where it says:

    Code:
    if (-e "/scripts/postwwwacct") {
    	system("/scripts/postwwwacct",@ARGV);
    }
    
    change it to:

    Code:
    if (-e "/scripts/postwwwacct") {
    	system("/scripts/postwwwacct",@ARGV,$ip,$pass);
    }
    
    and the IP and password will then be available to the postwwwacct script.

    If you do that, you may want to use my watchwwwacct script.
     
Loading...

Share This Page