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.

Stop account creation using prewwacct script

Discussion in 'cPanel Developers' started by georgeb, Oct 16, 2011.

  1. georgeb

    georgeb Well-Known Member

    Joined:
    May 23, 2010
    Messages:
    48
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    Hi. I am looking for a solution to stop account creation if a condition is found, using /scripts/prewwwacct.

    Regards,
    George B.
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    George, This isn't possible in 11.30 using prewwwacct.

    In 11.32 we added a new hook system that implements this ability. Keep an eye out, it's called "standard hooks".
     
  3. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    One option is to call killacct in postwwwacct until 11.32 comes out.
     
  4. georgeb

    georgeb Well-Known Member

    Joined:
    May 23, 2010
    Messages:
    48
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Montreal, QC, Canada
    cPanel Access Level:
    Root Administrator
    Thank you both for the replay.
    sirdopes - "One option is to call killacct in postwwwacct until 11.32 comes out. " I am using this for moment

    I see that prewwwaccct is working, I tried something so search if wwwacct is working (like process) and send a pkill -9 wwwacct and is working, the account is not created but will create a zombie process, and from WHM when I create an account will hang (if the condition is found).


    Regards,
    George B.
     
Loading...

Share This Page