Reference

user

Available since

  • HAProxy 1.8
  • HAProxy Enterprise 1.8r1

Decrease the CLI level to user.

Description Jump to heading

When in an interactive session using the Runtime API’s prompt command, the user command decreases the CLI level to the less privileged user role.

As of version 2.4r1, It also drops experimental mode.

Examples Jump to heading

To decrease the CLI level to user:

  1. Connect to the Runtime API socket:

    bash
    sudo socat stdio tcp4-connect:127.0.0.1:9999
    bash
    sudo socat stdio tcp4-connect:127.0.0.1:9999
  2. Start an interactive session:

    bash
    prompt
    bash
    prompt
  3. Set the CLI level to user:

    bash
    user
    bash
    user
  4. Display the CLI level:

    bash
    show cli level
    bash
    show cli level
    output
    bash
    user
    output
    bash
    user

See also Jump to heading

If this page was useful, please, Leave the feedback.

© 2023 HAProxy Technologies, LLC. All Rights Reserved
Manage Cookie Preferences