TARIMEHR Posted December 22, 2016 Share Posted December 22, 2016 hello we need create space in whmcs that can send linux shell command from whmcs to each server that we want. for example: client X have a virtual machine (centos 6.8-64 Bit) who can we send (yum install nano -y) command from whmcs? 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted December 22, 2016 Share Posted December 22, 2016 This is not something you want to do unless you know what you're doing. If you have to ask in here, yeah, no. This is absolutely possible to do (I've done things like this for php scripts easily), but you have to approach this incredibly cautiously and know what you're doing, because you can literally destroy servers this way 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted December 25, 2016 Share Posted December 25, 2016 do you have limited list of commands you which to be able to run it from WHMCS, or it will be unlimited? is it for admins only or clients can perform it too? it's possible to implement such thing in WHMCS, but how secure this will be is the real question 0 Quote Link to comment Share on other sites More sharing options...
fireupjb Posted December 26, 2016 Share Posted December 26, 2016 I was about to ask if WHMCS is limited to the scope of the user, then by linux law it technically should be restricted to that... (I would possibly even recommend the user probably use an API vs direct shell eg. SOAP/etc.) 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted December 26, 2016 Share Posted December 26, 2016 Yes, WHMCS is obviously limited by the user it's run as, however, even that can be worked around, legitimately. Again, it's all about having this done properly and securely. If one has to ask 'how to do it', on a public forum, yeah, that's indicating they shouldn't be doing this one. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.