Comware Based
1752758 Members
4817 Online
108789 Solutions
New Discussion юеВ

Re: Disable Display Current-Configuration.

 
SOLVED
Go to solution
acapper
Occasional Visitor

Disable Display Current-Configuration.

Good morning, I need to create a read-only user who also can't run the display current-configuration command
How can I do it?
Thank you.

4 REPLIES 4
akg7
HPE Pro
Solution

Re: Disable Display Current-Configuration.

Hello,

 

How users are authenitcated, local or via ladius?

You have to set user privilege level 0.

Please refer below link for your reference:

https://support.hpe.com/hpesc/public/docDisplay?docId=c03538018&docLocale=en_US

 

Thanks!

Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the companyAccept or Kudo
acapper
Occasional Visitor

Re: Disable Display Current-Configuration.

Thank you for the answer akg7

I created a local user
If I add the level-0 role, the current-configuration display does not work, but neither does the rest of the displays.
I want it to work all display commands except current-configuration and save-configuration.

[HP_5510_Cores]display ?
Permission denied.

[HP_5510_Cores]command-privilege
^
% Unrecognized command found at '^' position.

command-privilege does not recognize me as a valid command.

acapper
Occasional Visitor

Re: Disable Display Current-Configuration.

I created the user Peter, and I assign him the user-role level-1

local-user Peter class manage
service-type ssh
authorization-attribute user-role level-1

Then in the role name level-1 I add the following lines to deny the display current and save commands

role name level-1
description Predefined level-1 role
rule 1 deny command display current-configuration
rule 2 deny command display save-configuration

I enter with the user Peter, I run the display current-configuration command and it allows me.

I don't understand anything.

 

acapper
Occasional Visitor

Re: Disable Display Current-Configuration.

It already works for me, with the settings of the previous post.

It must be that I did not save changes or had not logout with user Peter and then login again.

Thank you very much for the help.
Greetings