I
I
Ivan2016-05-17 16:03:35
SSH
Ivan, 2016-05-17 16:03:35

How to delete a user in mikrotik??

Model RB951G-2HnD
Added HotSpot users. How to delete them via SSH? Or that they themselves are removed as soon as the time runs out?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Aleksandr, 2016-05-17
@cyberspy

Raise RADIUS... or write a script and run on a schedule...

L
Leonid, 2016-05-17
@zzevaka

It's not entirely clear what you need to:
- delete all users after some period of time?
- delete a specific user after a certain time after creation?
Try to clarify the question.
As an option:
1. By ssh: ssh [email protected] '/ip hotspot user remove 1'
2. Idea for the script: when creating a user, in the comment, specify the time after which the user needs to be deleted. Periodically run the script to check this time for all users and delete those whose time has already come.
It is better to steer users dynamically through RADIUS.

G
Gregory, 2016-05-17
@Maxlinus

however you need wiki.mikrotik.com/wiki/Manual:User_Manager

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question