Skip to main content

How to output from cli a list of all active FTP user accounts on WHM server

Answered

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  As you've mentioned, the best thing to do would be to create a for loop that uses each cPanel username.  This works well on a test system, although you'll need to ignore "system" and "nobody" from the output:

    for i in `ls /var/cpanel/users`; do uapi --user=$i Ftp list_ftp; done

     

    0
  • DevTeam9200

    cPRex your a legend . did the trick. Can tidy it up a little more to remove "system accounts" and output to a TXT or CSV but for now that worked and got me going. Thanks much appreciated on this.

    0
  • cPRex Jurassic Moderator

    I'm glad that helped!

    0

Please sign in to leave a comment.