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?
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?
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 itps -auxf | grep cpsrvd
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.strace -fFv -p PID
BTW, you can try execute strace in a different manner as well, like
See if it helps...strace -fFv -p PID | grep /scripts