How to get username list created by DirectAdmin when creating new account.

MaXi32

Verified User
Joined
Jul 25, 2016
Messages
645
Location
The Earth
In home directory I have bunch of users created by DA and some created manually.

User created by DA
user1
user2
user3

User created by me through server backend
user4
user5

The user folders created by DA also can be found by using find function to this path:

home_users=`find /usr/local/directadmin/data/users -maxdepth 1 -mindepth 1 -type d ! -name '.*' -printf '%f\n'` #Get username based on DA data
or
home_users=`ls -1 /usr/local/directadmin/data/users`


instead of using the above find method, is there an alternative way (or official-like way) to determine list of all accounts created by DA when creating new user account? I'm wondering where DA detect list of users when trying to create backup through Admin_Backup function.
 
Last edited:
Back
Top