Skip to main content

BASH script: Get username or domain given one or the other

Comments

2 comments

  • sparek-3
    To find the user owner of a particular domain name on the server you can use the cPanel supplied script: /scripts/whoowns %domain% To go the other way and list the domain names that a particular user owns, you could script something with: cat /etc/userdomains | grep ": %username%$" | cut -d : -f 1
    0
  • cPanelMichael
    Hello, I've moved this to the Developers forum category. Thanks!
    0

Please sign in to leave a comment.