Sharif
Verified User
- Joined
- May 21, 2021
- Messages
- 44
I'm looking for a way to quickly generate a single-use auto-login URL from the command line for my DirectAdmin hosting panel.
This would be useful for quick logins or temporary access without sharing full credentials.
Does anyone have a script or method for generating these types of single-use DirectAdmin auto-login URLs from the terminal?
I use this when "root" is the name of the user:
But I get output that it's Legacy & I should switch to new arguments format for some reason :
by change it here it provided the login URL:
Seems that DirectAdmin has updated the command format,
so you now need to use create-login-url instead of --create-login-url.
Specifying --user=root generates a URL for the root user.
This would be useful for quick logins or temporary access without sharing full credentials.
Does anyone have a script or method for generating these types of single-use DirectAdmin auto-login URLs from the terminal?
I use this when "root" is the name of the user:
Code:
/usr/local/directadmin/directadmin --create-login-url user=root
But I get output that it's Legacy & I should switch to new arguments format for some reason :
Code:
Legacy command line arguments detected, please switch to new arguments format. Command changed to "/usr/local/directadmin/directadmin create-login-url --user=root"
Code:
/usr/local/directadmin/directadmin create-login-url --user=root
Seems that DirectAdmin has updated the command format,
so you now need to use create-login-url instead of --create-login-url.
Specifying --user=root generates a URL for the root user.
Last edited: