Skip to main content
Anthony_E
Staff
Staff
February 5, 2020

Technical Tip: How to use question mark in admin password via CLI

  • February 5, 2020
  • 0 replies
  • 1912 views
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:
<passwd>    Please input password value.

# config system admin user
    edit test
        set password 123
        <passwd>   Please input password value.
If '?' is used  in the password, before typing '?' press 'CTRL+V'.
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