Technical Tip: How to use question mark in admin password via CLI
Description
This article describes how to use question mark inside a password for admin user using CLI.
Solution
When configuring or modifying admin password via CLI and using the symbol of question mark '?' inside of the password, FortiManager/FortiAnalyzer gives the hint output whenever '?' is typed.
In the example below, admin password '123?456' is set.
Try to put the '?' symbol and the FortiManager responds with the hint line:
After that '?, is allowed in password field.
This article describes how to use question mark inside a password for admin user using CLI.
Solution
When configuring or modifying admin password via CLI and using the symbol of question mark '?' inside of the password, FortiManager/FortiAnalyzer gives the hint output whenever '?' is typed.
In the example below, admin password '123?456' is set.
Try to put the '?' symbol and the FortiManager responds with the hint line:
<passwd> Please input password value.If '?' is used in the password, before typing '?' press 'CTRL+V'.
# config system admin user
edit test
set password 123
<passwd> Please input password value.
After that '?, is allowed in password field.
# config system admin user
edit test
set password 123
<passwd> Please input password value.
set password 123?456
