0

I was given a username and a temporary password on a catalyst switch and I can't figure out how to change my password...

Upon googling, I found this but when I raise my privileges to 15 by typing enable 15 and then type

username gozulin {[1] opensesame} it says:

                 ^

%invalid input detected at '^' marker

The marker is pointed at the first character after my username.

So, how do I do it?

EDIT: now I type

username gozulin password opensesame it says:

 ^

%invalid input detected at '^' marker

EDIT 2: Success!

The system is setup for (md5) encrypted passwords so the command I had to give after was:

username gozulin secret opensesame

Thank you all for your help!

gozu
  • 313
  • 2
  • 6
  • 14

3 Answers3

5

The braces and brackets are just to tell you whether the option is required or not. You need to issue the command like so:

username gozulin password 0 opensesame

The 0 is because you are using an unencrypted password on the command line (and I hope they have service password-encryption enabled!) If you know the encrypted version of your password (normally not, that tends to be used for auto configs) you would set type to 1.

Zypher
  • 36,995
  • 5
  • 52
  • 95
  • I tried that but I get `invalid input detected at '^' marker` with the marker pointing to the s in username. – gozu Jul 13 '12 at 21:55
  • 1
    @gozu and your definatly in configuration mode? `switch-name#(config)` prompt? – Zypher Jul 13 '12 at 22:03
  • @gozu Also looking at your command the `0` is REQUIRED for this to work, put the `0` between `password` and `opensesame` – Zypher Jul 13 '12 at 22:31
3

[Edited to cope with your updates]

The full sequence of commands should be as follows:

enable
configure terminal
username gozulin password 0 opensesame
  • I have done that but I'm stuck at the next step now :). I've edited my post to reflect that. – gozu Jul 13 '12 at 21:17
2
switch>enable

switch# config t

Switch(config)#username gozulin privilege 15 password yourpassword

Switch(config)end

switch# wr

Note#1: you don't need to enter 0 or 7 --- try that. Privilege 15 will give you all the privilege as for a root user.

Note#2: It is always good to not overwrite the previous credential until you know for sure your new user and password are working. If you overwrite it and it does not work, you will lose your access to the switch. If this happened just talk with the person who created your credential to overwrite it for you. Tell him/her that it was a typo. --- Hope this helps

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
LanWanTech
  • 21
  • 1