i forgot my admin account。 Only have a account can only view。How can i solve it?
Thanks
bash-5.1# ./lnms user:add --help
Description:
Add a local user, you can only log in with this user if auth is set to mysql
Usage:
user:add [options] [--] <username>
Arguments:
username The username the user will log in with
Options:
-p, --password=PASSWORD Password for the user, if not given, you will be prompted
-r, --role=ROLE Set the user to the desired role [normal, global-read, admin] [default: "normal"]
-e, --email=EMAIL Email to use for the user
-l, --full-name=FULL-NAME Full name for the user
-s, --descr=DESCR User description
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--env[=ENV] The environment the command should run under
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
so
lnms user:add --password=foo --role=admin myadminuser
should do the trick ?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.