JN0-104 Exam QuestionsBrowse all questions from this exam

JN0-104 Exam - Question 84


Which statement is true about using custom login class permissions?

Show Answer
Correct Answer: C

If you allow and deny the same command in Junos OS, the command is allowed. This is because the allow-commands and allow-configuration regular expressions take precedence over the deny-commands and deny-configuration expressions. Therefore, if the same command is specified in both allow and deny statements, the allow operation will override the deny operation, making the command permitted.

Discussion

10 comments
Sign in to comment
MunrraOption: A
Sep 15, 2022

"A" should be the correct one

aisa007
Nov 2, 2022

Why A?

GreatDaneOption: C
Dec 12, 2022

Ref: User Access Privileges | Junos OS | Juniper Networks “User Access Privileges … Understanding the Allow and Deny Statement Precedence and Matching By default, the allow-commands and allow-configuration regular expressions take precedence over deny-commands and deny-configuration expresssions. Thus, if you configure the same command for both the allow-commands and deny-commands statements, then the allow operation takes precedence over the deny operation. ..,.” Answer: C

EngNawafOption: C
Apr 27, 2023

set system login class myclass allow-commands "show interfaces" set system login class myclass deny-commands "show interfaces" the command will be allowed

CradicalOption: A
May 30, 2023

The correct statement is: A. If you allow and deny the same command, the command is denied. When configuring custom login class permissions in Junos OS, if you explicitly allow and deny the same command within the same login class, the deny action takes precedence. This means that the command will be denied for users belonging to that login class, even if it is explicitly allowed elsewhere in the configuration. The deny action overrides the allow action for the specific command.

misu112Option: C
Oct 4, 2022

C is answer

jj970usOption: A
Oct 17, 2022

A is the correct answer. https://supportportal.juniper.net/s/article/Understanding-access-privileges-in-operational-and-configuration-mode?language=en_US

jj970us
Oct 17, 2022

Sorry, I mean "C" is the correct answer.

_muxa_Option: C
Nov 16, 2022

Answer C

Aidar5Option: C
Nov 17, 2022

C is correct: Understanding the Allow and Deny Statement Precedence and Matching By default, the allow-commands and allow-configuration regular expressions take precedence over deny-commands and deny-configuration expresssions. Thus, if you configure the same command for both the allow-commands and deny-commands statements, then the allow operation takes precedence over the deny operation.

jj970usOption: C
Jan 14, 2023

C should be the correct answer.

JienexOption: C
Apr 21, 2023

This is pretty obvious. should be C