The title might be confused, but here is the simple example:
After we installed directadmin, we will have a default username 'admin'
Now if I change this username admin to adminabc, then if I want to use script how do you reference this original admin's username?
I found this one https://www.directadmin.com/features.php?id=2832 (not sure if its purpose is to return that username) but this one just return a random admin username. For example if I create another admin username called admin2, and use this command in terminal
original_admin=$(./directadmin a)
sometimes the value $original_admin will display admin2, but what I want is the original admin user adminabc ( created by root).. where did directadmin store this information ?
I'm looking for the easiest method in directadmin-way (if available), for now my workaround is to mark the UID of that original username somewhere (after directadmin has finished installation and before its username got changed) then I can use that UID as reference.
After we installed directadmin, we will have a default username 'admin'
Now if I change this username admin to adminabc, then if I want to use script how do you reference this original admin's username?
I found this one https://www.directadmin.com/features.php?id=2832 (not sure if its purpose is to return that username) but this one just return a random admin username. For example if I create another admin username called admin2, and use this command in terminal
original_admin=$(./directadmin a)
sometimes the value $original_admin will display admin2, but what I want is the original admin user adminabc ( created by root).. where did directadmin store this information ?
I'm looking for the easiest method in directadmin-way (if available), for now my workaround is to mark the UID of that original username somewhere (after directadmin has finished installation and before its username got changed) then I can use that UID as reference.
Last edited: