Community discussions

MikroTik App
 
verbylab
newbie
Topic Author
Posts: 35
Joined: Sat Jun 26, 2021 4:30 pm

Dollar sign in password

Wed Jul 07, 2021 3:06 am

I set a password for one of my users with the following command:
/user add name="..." password="u$O382@jklas134"
# Not the same password, but the pattern with the dollar sign is the same

After setting it, I'm no longer able to log in using that password. I think I should have escaped the dollar sign, but not having done this, is there still a way to log in?
 
Cablenut9
Long time Member
Long time Member
Posts: 542
Joined: Fri Jan 08, 2021 5:30 am

Re: Dollar sign in password

Wed Jul 07, 2021 3:08 am

Reset button, and of that doesn't work then do Netinstall.
 
verbylab
newbie
Topic Author
Posts: 35
Joined: Sat Jun 26, 2021 4:30 pm

Re: Dollar sign in password

Wed Jul 07, 2021 3:11 am

Thanks! I actually lucked out and managed to get in. Not using the escape character before the dollar sign meant that the router tried to read a variable instead of using the text representation.

What I used: thisismy$variable@password
Router interpreted as: thisismy@password (because $variable is null / empty string)
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Dollar sign in password

Wed Jul 07, 2021 3:19 am

next time, on terminal only:
/user add name="..." password="u\$O382@jklas134"
 
verbylab
newbie
Topic Author
Posts: 35
Joined: Sat Jun 26, 2021 4:30 pm

Re: Dollar sign in password

Wed Jul 07, 2021 3:28 am

Appreciate it!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11982
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Dollar sign in password

Wed Jul 07, 2021 3:44 am

P.S.: do not have never only one full root user on device...
P.P.S: do not use admin, root or similar user...

Who is online

Users browsing this forum: almdandi, araqiel, Majestic-12 [Bot], mkx, Seko777 and 70 guests