Community discussions

MUM Europe 2020
 
emsi
just joined
Topic Author
Posts: 18
Joined: Tue Apr 20, 2010 9:23 am

Clear user command history

Tue Jan 18, 2011 4:02 pm

Hi,

is there any way clearing the command history of a user? We used the "/tool fetch" command on a customers router which expects the password as a clear text parameter. Now we have it in the cli history (up arrow) and can't get it out from there! ;-) Workaround would be adding a new user with "full" group permissions and hand the new username out to the customer. Afterwards delete the old one. That works. Any other ideas?

thanks
Oliver
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6619
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Clear user command history

Wed Jan 19, 2011 4:52 pm

As far as I know it is not possible.
 
dssmiktik
Forum Veteran
Forum Veteran
Posts: 732
Joined: Fri Aug 17, 2007 8:42 am

Re: Clear user command history

Wed Jan 19, 2011 11:43 pm

Maybe an added feature (requiring the full user permission) ?:
[/system console reset-command-history]
Doug
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24375
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Clear user command history

Thu Jan 20, 2011 8:46 am

that's why first make another admin user, then do the private stuff from there.
No answer to your question? How to write posts
 
emsi
just joined
Topic Author
Posts: 18
Joined: Tue Apr 20, 2010 9:23 am

Re: Clear user command history

Thu Jan 20, 2011 3:43 pm

I will next time! ;-) Is there any technical reason why RouterOS behaves like this? Every router hardware I know deletes the history after reboot. Keeping the history is a good thing, but there should be a way to clear it. If this is not a big deal take it as a "feature request".

thanks
Oliver
 
jo2jo
Forum Veteran
Forum Veteran
Posts: 967
Joined: Fri May 26, 2006 1:25 am

Re: Clear user command history

Sun Dec 18, 2011 12:42 am

You will see this is very common, in stead of addressing the issues MT will give some crazy work around that does not directly address you issue, but is enough to keep you quite for now.

SO no they do NOT feel like coding this feature many people on this board have asked for.

sad
:beep :beep :beep
 
dssmiktik
Forum Veteran
Forum Veteran
Posts: 732
Joined: Fri Aug 17, 2007 8:42 am

Re: Clear user command history

Sun Dec 18, 2011 7:51 am

I think it would be fairly trivial to do, maybe:
echo > /path/to/history/file
Doug
 
cartes
newbie
Posts: 41
Joined: Fri Oct 12, 2007 12:23 am

Re: Clear user command history

Wed Dec 21, 2011 2:19 am

I think this is a very critical issue here. We were doing some digging, and found that this is not possible at all. Even if we create another user, as suggested by sergejs, any command line history still stays in memory, and returns once the user is recreated, even after reboots!

We were creating an in-house system to intelligently manage large number of Mikrotik Routers on customer premises, but if there is no way to delete history, then this is a major issue.

Please advise!
 
bluecrow76
just joined
Posts: 20
Joined: Wed Sep 13, 2006 11:55 pm

Re: Clear user command history

Mon Feb 06, 2012 9:29 pm

I'm gonna give this a big bump!

I find it easier to create new users from the command line, but I don't do it anymore because the password that is set is in plain text in the history. Not good when there's no way to clear it!

Shouldn't be that difficult to add /system history clear...
 
bkus
just joined
Posts: 7
Joined: Sun Sep 23, 2012 10:05 pm

Re: Clear user command history

Sun Aug 25, 2013 8:37 pm

Has this feature been added yet? It's really critical for security.
 
jandafields
Forum Guru
Forum Guru
Posts: 1514
Joined: Mon Sep 19, 2005 6:12 pm

Re: Clear user command history

Wed Aug 28, 2013 6:27 am

I also vote to have this security problem fixed. Creating a new user does not clear the history.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24375
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: Clear user command history

Wed Aug 28, 2013 9:59 am

we have added history clear command in next RouterOS v6.3
No answer to your question? How to write posts
 
tomtom80
newbie
Posts: 43
Joined: Sun Jan 06, 2008 12:48 am

Re: Clear user command history

Wed Aug 13, 2014 9:33 am

we have added history clear command in next RouterOS v6.3
Is this feature now from version 6.3 included? When yes how is the command?
 
User avatar
patrikg
Member Candidate
Member Candidate
Posts: 155
Joined: Thu Feb 07, 2013 6:38 pm
Location: Stockholm, Sweden

Re: Clear user command history

Wed Aug 13, 2014 12:29 pm

clear-history -- clear command history for all users

ros code

[admin@demo2.mt.lv] > console clear-history

Who is online

Users browsing this forum: dyke, Majestic-12 [Bot], ottoshr and 98 guests