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.

Controlling accounts from shell

Discussion in 'General Discussion' started by sh4ka, Apr 6, 2006.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    I'm writing a little script, and I need to know the exact account number that I have in the server... always by shell, not using WHM... how can I know exactly how many accounts I have without counting one by one?

    Thank you.
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You could find out based on how many entries are in the /var/cpanel/users directory.
     
  3. maximus_marcus

    maximus_marcus Well-Known Member

    Joined:
    Mar 9, 2006
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Hello ,

    For this , it can be known using the following command

    cat /etc/trueuserdomains |wc -l
     
Loading...

Share This Page