Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Technical Documentation
 
CLI Explorer New
 
Content Explorer New
 
Documentation Help New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
Glossary
 
Portable Libraries
 
Home > Support > Technical Documentation > Specifying Access Privileges for Junos OS Configuration Mode Hierarchies
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

Supported Platforms Search

Advanced Search |  Search Tips
 

Supported Platforms

  • EX Series
  • M Series
  • MX Series
  • T Series
 
 

Related Documentation

  • EX Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
  • M Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
  • MX Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
  • T Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
 
Recent Community Posts
Show All Show Fewer 
 
 
Related Links
M Series Product Literature
  • Junos Central
  • Junos Technotes
  • Junos Day One Books
M Series Certification
  • Fast Track Certification Program
  • Certification Study Guides
Junos Technical Education Courses (Free)
  • Networking Fundamentals
  • Junos As A Second Language
  • Junos As A Scripting Language
  • Junos As A Security Language
  • Juniper Networks Books
Support
  • Junos Software (Canada & US)  Login required
  • Junos Software (Worldwide) Login required
  • Knowledge Base - Browse M Series Articles  Login required
  • Technical Bulletins for M Series Login required
  • IOS to Junos Migration Tool Login required
  • ScreenOS to Junos software with enhanced services Migration Tool Login required
Show All Show Fewer 
 
 

Specifying Access Privileges for Junos OS Configuration Mode Hierarchies

You can specify extended regular expressions with the allow-configuration and deny-configuration attributes to define user access privileges to parts of the configuration hierarchy. Doing so overrides login class permission bits set for a user. You can also use wildcards to restrict access. When you define access privileges to parts of the configuration hierarchy, do the following:

  • Specify the full paths in the extended regular expressions with the allow-configuration and deny-configuration attributes.
  • Enclose parentheses around an extended regular expression that connects two or more expressions with the pipe | symbol. For example:
    [edit system login class class-name]user@host# set deny-configuration "(system login class) | (system services)"

    Note: Each expression separated by a pipe (|) symbol must be a complete standalone expression, and must be enclosed in parentheses ( ). Do not use spaces between regular expressions separated with parentheses and connected with the pipe (|) symbol. You cannot define access to keywords such as set, edit, or activate.

To explicitly allow an individual configuration mode hierarchy that would otherwise be denied, include the allow-configuration statement at the [edit system login class class-name] hierarchy level:

[edit system login class class-name]allow-configuration "regular-expression";

To explicitly deny an individual configuration hierarchy that would otherwise be allowed, include the deny-configuration statement at the [edit system login class class-name] hierarchy level:

[edit system login class class-name]deny-configuration “regular-expression";

You can include one deny-configuration and one allow-configuration statement in each login class.

  • Explicitly allowing configuration mode hierarchies or regular expressions using the allow-configuration statement adds to the regular permissions set using the permissions statement. Likewise, explicitly denying configuration mode hierarchies or regular expressions using the deny-configuration statement removes permissions for the specified configuration mode hierarchy, from the default permissions provided by the permissions statement.

    For example, if a login class has permissions configure and the allow-configuration statement includes the system services expression, the specified login class user can edit configuration at the [edit system services] hierarchy level and issue configuration mode commands (such as commit), in addition to just entering the configuration mode using the configure command (the permissions specified by theconfigure permission flag). Likewise, if a login class has permissions all and the deny-configuration statement includes system services, the specified login class user can perform all operations allowed by the all permissions flag, except issuing configuration mode commands (such as commit) or modifying configuration at the [edit system services] hierarchy level.

  • If you allow and deny the same set of configuration hierarchy levels, regular expressions, or commands, the allow-configuration statement permissions take precedence over the permissions specified by the deny-configuration statement. For example, if you include allow-configuration “system services”; and deny-configuration “system services”;, the login class user can continue to edit configuration or issue commands at the edit system services hierarchy level.
 

Related Documentation

  • EX Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
  • M Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
  • MX Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
  • T Series
  • Example: Defining Access Privileges for Configuration Mode Hierarchies
  • Regular Expressions for Allowing and Denying Junos OS Configuration Mode Hierarchies
  • Configuring Access Privilege Levels
 

Published: 2010-10-08

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out