Changing the status of your own local user account using the CLI

Prev Next

Use the CLI commands in this topic to changing your own local user account status.

Caution

Although you can change your own user account with a Monitor, Analyst, or Auditor role, you cannot save the changes to memory. Your changes could be lost if an administrator reboots without saving changes or reverts to the last saved configuration.

Prerequisites
  • Any role

To change your own local account status:
  1. Log in to the CLI as yourself.

  2. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  3. To change your local account status:

    • Specify that you cannot log in to the appliance locally using a password, but can do so using an SSH authorized key. Use the following command:

      username <username> disable login

      Note

      If your role is Monitor, Analyst, or Auditor, the CLI session will end immediately after you run this command.

    • Specify that you cannot log in to the appliance locally, but can log in remotely. Use the following command:

      username <username> disable local-login

  4. (Operator role only) Save your changes:

    hostname (config) # write memory