Community discussions

MikroTik App
 
User avatar
LinuxLarry
just joined
Topic Author
Posts: 20
Joined: Fri Aug 10, 2018 9:31 pm
Location: Earth

Special Character Support

Wed Oct 13, 2021 10:21 pm

Hi,

I have searched and searched and I have not been able to find a answer yet so I was hoping maybe someone around here knows where I can find a list of unsupported special characters or is there a way that I need to escape them to be used.

I noticed if I wanted to say use an $ in a password that it would break in the cli. I was curious what other characters the system would do that with and what they were or am I needed to escape it some how. I tried using \$ but that too was not valid.

This would be regarding RouterOS6.
 
msatter
Forum Guru
Forum Guru
Posts: 2897
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Special Character Support

Thu Oct 14, 2021 12:56 am

Sometimes you have also to escape the escape. Try \\$

From the manual: https://help.mikrotik.com/docs/display/ ... outerUsers

name (string; Default: )
User name. Although it must start with an alphanumeric character, it may contain "*", "_", "." and "@" symbols.

password (string; Default: )
User password. If not specified, it is left blank (hit [Enter] when logging in). It conforms to standard Unix characteristics of passwords and may contain letters, digits, "*" and "_" symbols.
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: Special Character Support

Thu Oct 14, 2021 4:47 am

You have to put password="1234/$", needs the "".
 
User avatar
LinuxLarry
just joined
Topic Author
Posts: 20
Joined: Fri Aug 10, 2018 9:31 pm
Location: Earth

Re: Special Character Support

Thu Oct 14, 2021 10:10 pm

Thanks for the info

Kind Regards
 
cyrusd
just joined
Posts: 15
Joined: Fri Jan 22, 2021 11:43 pm

Re: Special Character Support

Thu Nov 17, 2022 4:10 pm

Sometimes you have also to escape the escape. Try \\$

From the manual: https://help.mikrotik.com/docs/display/ ... outerUsers

name (string; Default: )
User name. Although it must start with an alphanumeric character, it may contain "*", "_", "." and "@" symbols.

password (string; Default: )
User password. If not specified, it is left blank (hit [Enter] when logging in). It conforms to standard Unix characteristics of passwords and may contain letters, digits, "*" and "_" symbols.
SLOVED

Who is online

Users browsing this forum: anav, ItchyAnkle, menyarito, sergejs and 88 guests