Generating Remote access key for resellers that do not have a remoe access key setup

shazde

Active Member
May 19, 2014
29
0
1
cPanel Access Level
Root Administrator
Hi,

I am trying to setup remote access keys for reseller that do not have the remote access key setup.
In order to do that I am running this command:

Code:
# su -s /bin/bash -c '/usr/local/cpanel/whostmgr/bin/whostmgr setrhash' username
unfortunately /usr/local/cpanel/whostmgr/bin/whostmgr is only accessible and readable by root.
Is there any other way to generate the key through scripts or api call as a root user?

Thanks in advance..