Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2009
    Posts
    17

    Default what is the script to rename an account?

    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. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    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

    ps -auxf | grep cpsrvd
    using the PID from the 2nd column, you can do a strace on it

    strace -fFv -p PID
    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

    strace -fFv -p PID | grep /scripts
    See if it helps...

Similar Threads & Tags
Similar threads

  1. Rename e-mail account
    By n000b in forum E-mail Discussions
    Replies: 2
    Last Post: 05-18-2009, 06:42 PM
  2. rename account
    By Silver_2000 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-12-2007, 03:08 PM
  3. Rename a mailbox
    By hm2k in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-07-2006, 08:06 AM
  4. Main account rename and email address
    By apc1 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-30-2004, 08:55 AM
  5. Automating Account Creation: Shell Script? PHP Script?
    By RangerWest in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-13-2003, 09:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube