Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2009
    Posts
    7

    Default postwwwact set owner

    Hello!

    Is there anyone who knows how to set owner on account created with postwwwact scripts? Now all accounts is set to owner root. I want a reseller username to be the owner.

    I bought my script and it is written in php.

    If someone can help me I will be very glad. A small reward of $10 for the one who can help me.

    Sincerely Johan

  2. #2
    cPanel Staff cPanelMatt's Avatar
    Join Date
    Apr 2005
    Location
    Houston, TX
    Posts
    409

    Default

    If you were to execute:

    /scripts/modcpuser --user $username --action set --key OWNER --value $reseller


    you would probably get the result you wanted
    Matt Dees
    Integration Developer
    cPanel, Inc.
    cPanel Integration Blog

  3. #3
    Member
    Join Date
    Jun 2009
    Posts
    7

    Default

    hmm maybe I said wrong or can i add that line in my script ?

    The thing I want is when a new user order a website with my cms site2go.se - the account and the website installs. That works fine. From now on I want all new customer that orders shall driectly be owner "jbn" s accounts.

  4. #4
    Member
    Join Date
    Jun 2009
    Posts
    7

    Default

    is there anyone who can help me ?

  5. #5
    Integration Developer cPanelDavidN's Avatar
    Join Date
    Dec 2009
    Location
    Houston, TX
    Posts
    525

    Default

    Hi jbnmedia,

    Unfortunately, I don't know how exactly you're creating accounts. Normally, when you use cPanel or WHM, you can set the owner when you first create the account. However, it sounds like you have a different setup.

    If you need something to happen after account creation, make (or add to) a postwwwacct script. Anything you put in this script will get executed when an account is created.

    /scripts/modcpuser is for changing a cpanel account. You can use it to change the owner of an account. If you call that script, inside your postwwwacct script, you will change the owner immediately after the account is created.

    Documentation for postwwwacct scripts: cPanel/WHM Script Hooks

    A blog article with example PHP postwwwacct script: Frequently Asked Scripts: "How do I automate XYZ after creating an account?" - cPanel Integration

    Regards,
    -DavidN
    David Neimeyer
    Integration Developer

    sdk.cpanel.net
    APIs: XML-API API1 & API2
    Check Out: Developer Downloads Integration Blog
    Need Support? Support Ticket Developer Forum Feature Request

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 10-15-2010, 04:30 AM
  2. set default owner of new account
    By tfeathers in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-11-2010, 11:51 AM
  3. owner permissions suexec set up?
    By Frano8 in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 12-17-2008, 05:18 AM
  4. file owner set to nobody
    By kosh2 in forum New User Questions
    Replies: 2
    Last Post: 10-04-2006, 07:46 AM
  5. Set Directory Owner Same As Process Owner
    By xxkylexx in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-21-2006, 01:22 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube