hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Software and Control Panels : Plesk Creation Utilities
Reply

Hosting Software and Control Panels Software used in the web hosting industry. Topics include control panels, add-on software, setup scripts, etc.
Forum Jump

Plesk Creation Utilities

Reply Post New Thread In Hosting Software and Control Panels Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-19-2005, 11:13 PM
slypete slypete is offline
Junior Guru
 
Join Date: Jan 2005
Posts: 198

Plesk Creation Utilities


Is anyone fimiliar with Plesk Creation Utilities? I guess these are commands you can run from the command line to add users and assign a hosting package. I'm wondering if I could run these commands via a PHP script? If I could I would be able to develop my own sign up script. Anyone know anything about this? Thanks!

Reply With Quote


Sponsored Links
  #2  
Old 01-20-2005, 03:50 AM
chrisranjana chrisranjana is offline
Web Hosting Master
 
Join Date: Dec 2002
Location: chennai , tamil nadu , In
Posts: 1,402

__________________
chrisranjana.com
Php Programmers. Software Developers. Web development Company.
"While money may not help make people happy, being happy may help them make money." - Forbes magazine

Reply With Quote
  #3  
Old 01-20-2005, 11:34 AM
slypete slypete is offline
Junior Guru
 
Join Date: Jan 2005
Posts: 198
I'm new to linux. It says to use client.sh and these different files depending on what you want to do. How do you "use" that file? I tried:
root# client.sh --create user

I dont think that is the correct syntax though. I just dont know how to open client.sh so I can use it, anyone know what I mean?

Reply With Quote
Sponsored Links
  #4  
Old 01-20-2005, 02:29 PM
Saeven Saeven is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Canada
Posts: 644
Hi,

You can run the creation utilities via PHP, however, the creation utilities must be run as root. This understates that you must have SUDO installed.

Enter the second consideration, PHP normally runs as nobody (apache on certain systems). It would be murder to grant SUDO access to 'nobody'. You must therefore also have some type of SUEXEC module, carefully configured, to identify which user is running the PHP script - that way you can control which users get SUDO access.

All in all, the Plesk7 API design is poor. On the bright side, the Plesk6 API was worse - perhaps they'll nail it with Plesk8? An API is supposed to give a program access to another program (application program interface) - however - root-privilege only shell scripts is shooting yourself in the foot. Most resellers will not grant sudo access on a shared webhosting machine which is the audience that plesk caters to. Sudo opens a hole without doubt, and it is wise to keep these kinds of 'powerful' tools far away from scripting languages such as Perl and PHP, which are the tools generally used to create web applications. Why then create an API that is only accessible through means which are not viable under most situations? It's akin to selling soup knives. Jokes aside, much harm could be done by the savvy wrongdoer.

Regards.
Alexandre

__________________
Senior Architect, saeven.net consulting inc.
Zend Certified Engineer
Saeven|CRM (helpdesk/email/livechat) : http://crm.saeven.net
Whois.Cart() : http://whoiscart.net


Last edited by Saeven; 01-20-2005 at 02:32 PM.
Reply With Quote
  #5  
Old 01-20-2005, 09:49 PM
slypete slypete is offline
Junior Guru
 
Join Date: Jan 2005
Posts: 198
So there is no way to do what I'm trying to do securely then? How does modernbill create a plesk acct sercurely then?

Reply With Quote
  #6  
Old 01-20-2005, 11:44 PM
Saeven Saeven is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Canada
Posts: 644
They don't lol. They depend on sudo and suexec as exacted above.


__________________
Senior Architect, saeven.net consulting inc.
Zend Certified Engineer
Saeven|CRM (helpdesk/email/livechat) : http://crm.saeven.net
Whois.Cart() : http://whoiscart.net

Reply With Quote
  #7  
Old 01-21-2005, 12:09 AM
slypete slypete is offline
Junior Guru
 
Join Date: Jan 2005
Posts: 198
Well someone mentioned to me running a cron job and have it check a database for new users every 5 mins or so and add them with plesk creation utilities. What do you think about that? Wouldn't that be secure?

Reply With Quote
  #8  
Old 01-21-2005, 11:36 AM
Saeven Saeven is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Canada
Posts: 644
Do you run your cron as root?

__________________
Senior Architect, saeven.net consulting inc.
Zend Certified Engineer
Saeven|CRM (helpdesk/email/livechat) : http://crm.saeven.net
Whois.Cart() : http://whoiscart.net

Reply With Quote
  #9  
Old 01-21-2005, 11:39 AM
slypete slypete is offline
Junior Guru
 
Join Date: Jan 2005
Posts: 198
I thought cron runs as root, no?

Reply With Quote
  #10  
Old 01-21-2005, 12:27 PM
Saeven Saeven is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: Canada
Posts: 644
Depends on how your system is configured. We forbid this on our machines...

__________________
Senior Architect, saeven.net consulting inc.
Zend Certified Engineer
Saeven|CRM (helpdesk/email/livechat) : http://crm.saeven.net
Whois.Cart() : http://whoiscart.net

Reply With Quote
  #11  
Old 01-21-2005, 07:18 PM
slypete slypete is offline
Junior Guru
 
Join Date: Jan 2005
Posts: 198
not secure to run cron as root?

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Cirrus Tech Improves Plesk Integration, Expands OS Offerings with VPS Services Web Hosting News 2012-09-28 14:21:20
Parallels Plesk Panel Vulnerability Revealed by Hacker Selling Exploit Web Hosting News 2012-07-11 10:34:13
WHIR Demo: Parallels Plesk Panel Whir Tv 2012-03-06 18:07:47
Parallels Plesk Flaw Left FTC Websites Open to Security Breaches Web Hosting News 2012-02-23 13:32:43
Web Host myhosting Offers Parallels Plesk Panel 10 VPS Plans Web Hosting News 2011-07-07 19:54:45


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?