The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Specifying unlimited with wwwacct through command line

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

  1. picoleto

    picoleto Member

    Joined:
    Aug 8, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    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

    Joined:
    Aug 10, 2002
    Messages:
    1,382
    Likes Received:
    23
    Trophy Points:
    38
    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.
     
Loading...

Share This Page