Community discussions

MikroTik App
 
ahmedfadel
just joined
Topic Author
Posts: 2
Joined: Tue Aug 18, 2015 3:59 am

How Can i create Users without password only username in batch process

Tue Aug 18, 2015 4:09 am

I need to create many users without password only username Plz i need help
Ps. when i create batch users..
 
User avatar
smst
just joined
Posts: 4
Joined: Thu Jun 11, 2015 11:26 am

Re: How Can i create Users without password only username in batch process

Tue Sep 15, 2015 10:44 pm

Hello!

I Usually Use This Way.
Step1)
Go to UserManager -> Users -> Add -> Batch and Create Users by Batch

Step2)
Run This Script :
 :local from 1;:local to 10;:local i 0;
 :foreach id in=[/tool user-manager user find] do={:if ($i >= $from && $i <= $to) do={/tool user-manager user set password="" $id}; :set i ($i+1)} 
1 is My First Username Index Number (Created by Batch Process) and 10 is My Last Username Index Number(Created by Batch Process)

You Can Use This Way and Set First & Last Index Number.
 
cicserver
Member
Member
Posts: 303
Joined: Sun Jul 24, 2011 12:04 pm

Re: How Can i create Users without password only username in batch process

Mon Sep 28, 2015 9:00 am

Nice Tip! but username must be then COMPLEX enough so that guessing should be impossible for guest. IMO username should be 10-12 characters long.

Who is online

Users browsing this forum: No registered users and 6 guests