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.

what is the script to rename an account?

Discussion in 'General Discussion' started by tom11011, Dec 2, 2009.

  1. tom11011

    tom11011 Member

    Joined:
    Apr 19, 2009
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    I know an account can be renamed by using the modify account function from the browser, but what script does it call to do this?
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    well, you can do a strace on the PID of 'cpsrvd' process while changing the username using the "Modify an Account" option. The strace will display a huge output which will give you the cPanel script it calls.

    Find out the PID of the 'cpsrvd' process using

    using the PID from the 2nd column, you can do a strace on it

    and then edit an account using the "Modify an Account" option. You will see a lot of output through which you have to search the script it called.

    BTW, you can try execute strace in a different manner as well, like

    See if it helps...
     
Loading...

Share This Page