Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Specifying unlimited with wwwacct through command line

Discussion in 'General Discussion' started by picoleto, May 22, 2007.

  1. picoleto

    picoleto Member

    Aug 8, 2006
    Likes Received:
    Trophy Points:
    Im trying to write a shell script to help me setup my accounts quicker, however am running into a small snag. Im using /scripts/wwwacct to create the accounts but i can get it to set certain features as unlimited.

    my string looks something like this.

    /scripts/wwwacct $domain $user $pass 80000 x n y n unlimited 0 0 unlimited 0 512000 y

    Unfortunately though when i check the stats in WHM it seems that it just set them all as 0.

    Now I know i can incorporate into my script to just change my /var/cpanel/users/usersname files but i was trying to save myself from doing that.

    I also noticed that with the command for wwwacct there is no way to specifiy add on domains?
  2. sparek-3

    sparek-3 Well-Known Member

    Aug 10, 2002
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I believe you can just specify "n" for the parameters you want as unlimited.

    /scripts/wwwacct $domain $user $pass 80000 x n y n n 0 0 n 0 512000 y

    Concerning addon domains, you will need to edit the /var/cpanel/users/username file and set the MAXADDON to a value that you want the account to have.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice