How do I change a user's password via the terminal.
Let's say user admin is user 0 on the list. What's the /user ... command to change the password?
Thanks
/user set [find name=username] password=passwordIs this what you're looking for?
That is perfect. Thank you.ros code
/user set [find name=username] password=passwordIs this what you're looking for?
/user set admin password=bla-bla
/user set [find name="michael.o'hara"] password=test123Which works, but will not work if you try it with either of our original examples:
/user set michael.o'hara password=test123or
/user set [find name=michael.o'hara] password=passwordHere's to best practise and people with weird names hahahah
http://xkcd.com/327/well, I can't create a user with apostrophe or space in the name (router says 'Invalid user name') - so edge cases are cut by smart routerOS
I know I'm being pedantic, but you can create those in other areas (like ppp secrets etc) so if someone is trying to use the same code for other similar functions they might run into that.well, I can't create a user with apostrophe or space in the name (router says 'Invalid user name') - so edge cases are cut by smart routerOS
Hi,I wonder how to list users .Thanks in advance!well,works fine for meCode: Select all/user set admin password=bla-bla
to list usersHi,I wonder how to list users .Thanks in advance!well,works fine for meCode: Select all/user set admin password=bla-bla
/user print
/user set admin password=bla-bla
/user set admin password-md5=f56e8aca4cdfaefba307865a179e28a7