Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member picoleto's Avatar
    Join Date
    Aug 2006
    Posts
    22

    Default Specifying unlimited with wwwacct through command line

    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. #2
    Member
    Join Date
    Aug 2002
    Posts
    1,118

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Ignoring bad line in /etc/wwwacct.conf
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-19-2006, 09:50 PM
  2. Missing HOST Config Line in /etc/wwwacct.conf
    By lechuong in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-15-2004, 09:32 PM
  3. Missing NS2 Config Line in /etc/wwwacct.conf
    By Anveo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-15-2003, 02:33 PM
  4. Missing HOST Config Line in /etc/wwwacct.conf
    By geekhosting in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-03-2003, 06:10 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube