Skip to main content

Listing accounts on mount points via API

Comments

2 comments

  • cPanelLauren
    Hi @DriveSafe There's no whmapi1 that will do this but you could essentially use the quota command for this, though you'd have to loop through all the users: [root@server ~]# quota -u lauren Disk quotas for user lauren (uid 1000): Filesystem blocks quota limit grace files quota limit grace /dev/vda1 1764100 10485760 10485760 41054 0 0
    0
  • DriveSafe
    Hi @DriveSafe There's no whmapi1 that will do this but you could essentially use the quota command for this, though you'd have to loop through all the users: [root@server ~]# quota -u lauren Disk quotas for user lauren (uid 1000): Filesystem blocks quota limit grace files quota limit grace /dev/vda1 1764100 10485760 10485760 41054 0 0

    Thanks, Lauren. i ended up using this inside of the listaccts loop: exec('getent passwd '.$userdetails->{'user'}.' | cut -d: -f6 | cut -d/ -f3')
    0

Please sign in to leave a comment.