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.

List all account usernames ?

Discussion in 'General Discussion' started by fedlerner, Dec 25, 2008.

  1. fedlerner

    fedlerner Active Member

    Joined:
    Oct 31, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    Is there a way to get all the account USERNAMES into a file?
    I was thinking something like:
    Code:
    ls /home/ > /path/to/file/file.txt
    But this is not effective, as it just lists all folders/files on /home.... :S
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Try this.

    ls -al /var/cpanel/users | cut -d" " -f5 > /path/to/file.txt
     
  3. fedlerner

    fedlerner Active Member

    Joined:
    Oct 31, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    Thanks, that helped a lot :).
     
Loading...

Share This Page