The Wayback Machine - https://web.archive.org/web/20240925233138/https://www.geeksforgeeks.org/role-based-access-control/
Open In App

Role-based Access Control

Last Updated : 20 Apr, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Only the administrator should have complete access to the network while the other employees like junior network engineer need not full access to the network device. A junior-level engineer generally requires only to crosscheck the configuration of the device, not to add or delete any configuration so why should give full access to that employee? For these types of scenarios, the administrator defines access to the devices according to the roles of the user. Role-based Access Control – The concept of Role-based Access Control is to create a set of permissions and assign these permissions to a user or group. With the help of these permissions, only limited access to users can be provided therefore level of security is increased. There are different ways to perform RBAC such as creating custom privilege levels or creating views. Custom level privilege – When we take a console of the router, we enter into the user-level mode. The user-level mode has privilege level 1. By typing enable, we enter into a privileged mode where the privilege level is 15. A user with privilege level 15 can access all the commands that are at level 15 or below. By creating a custom privilege level (between 2 and 14) and assigning commands to it, the administrator can provide subset of commands to the user. Configuration – First we will add a command to our privilege level say 8 and assign a password to it.

R1(config)#privilege exec level 8 configure terminal
R1(config)#enable secret level 8 0 saurabh

Here, we have assigned the password as saurabh. Also note that 0 here means the password followed is clear text (non-hashed) . Now, we will create a local user name saurabh and associated this user with configured level. Enable aaa model and assign default list to various lines.

R1(config)#username saurabh privilege 8 secret cisco123
R1(config)#aaa new-model
R1(config)#line vty 0 4
R1(config)#login local

Now, whenever username Saurabh will take remote access through vty lines, he will be assigned privilege level 8. Creating views: Role-Based CLI access enables the administrator to create different views of the device for different users. Each view defines the commands that a user can access. It is similar to privilege levels. Role-based CLI provides 2 types of views:

  1. Root view – Root view has the same access privilege level as user who has level 15.The administrator should be in root view as view can be added, edited or deleted in root view. 
    Configuration – To enter into root view, we first have to enable aaa on the device and then have to set enable password or secret password which will be used when any user will enter the root view. 
    To enable aaa on the device and to apply secret password, command is:
R1(config)#aaa new-model
R1(config)#enable secret geeksforgeeks
  1. Now, we will enter the root view by command:
R1#enable view
  1. By typing this, we will enter into root level where we can add, delete or edit views.
  2. Super view – A super view consists of 2 or more CLI views. A network administrator can assign a user or group of users a superview which consists of multiple views. A super view can consists of more than one view therefore it has the access to all the commands which are being provided in other views. 
    Configuration – As the super view consists of more than one view therefore first we will create 2 views named, Cisco and IBM. Now, in view Cisco, we will allow all show command in exec mode and int e0/0 command on global configuration mode.
R1(config)#parser view cisco
R1(config-view)#secret geeksforgeeks1
R1(config-view)#commands exec include all show
R1(config-view)#commands configure include int e0/0
  1. Now, we will create IBM view in which we will allow ping and config terminal on exec mode and ip address on configuration mode.
R1(config)#parser View ibm
R1(config-view)#secret geeksforgeeks1
R1(config-view)#commands exec include ping
R1(config-view)#commands exec include config terminal
R1(config-view)#commands configure include ip address 
  1. Now we will create a super view and name it as sup_user. We will enable a secret password superuser to the superview sup_user and add views Cisco and IBM to it therefore it has all the privilege to execute commands which are included in views Cisco and IBM only.
R1(config)#parser view sup_user superuser
R1(config-view)#secret superuser
R1(config-view)#view cisco
R1(config-view)#view ibm

Note – It is necessary to apply a password to any view before configuring it. Also, here instead of a secret password, enable password can be used but it is less secure as it is not encrypted. We can check the configuration by:

R1#show running-configuration

Advantages of Role-based Access Control
There are different advantages to utilizing RBAC, including:

1.Working on functional proficiency:- With RBAC, organizations can diminish the requirement for administrative work and secret word changes when they recruit new representatives or switch the jobs of existing representatives. RBAC allows associations rapidly to add and change jobs, as well as carry out them across stages, working frameworks (OSes) and applications. It likewise eliminates the potential for blunder while allocating client consents. Also, with RBAC, organizations can all the more effectively incorporate outsider clients into their organizations by giving them predefined jobs.

2.Upgrading consistence:- Each association should conform to nearby, state and government guidelines. Organizations for the most part really like to carry out RBAC frameworks to meet the administrative and legal necessities for secrecy and protection since leaders and IT offices can all the more actually oversee how the information is gotten to and utilized. This is especially significant for monetary establishments and medical organizations that oversee delicate information.

3.Giving chairmen expanded perceivability:- RBAC gives network overseers and administrators greater perceivability and oversight into the business, while likewise ensuring approved clients and visitors on the framework are just given admittance to what they need to take care of their responsibilities.
Lessening costs:- By not permitting client admittance to specific cycles and applications, organizations might ration or more expense successfully use assets, like organization data transmission, memory and capacity.

4.Diminishing gamble of breaks and information spillage:- Executing RBAC implies confining admittance to delicate data, consequently lessening the potential for information breaks or information spillage.

Disadvantages of Role-based Access Control :

  1. Lack of Flexibility: RBAC can be inflexible, as roles and permissions are typically assigned based on a predetermined set of rules. This can make it difficult to accommodate exceptions or unique situations where an individual needs access to resources that are outside of their assigned role.
  2. Complexity: Implementing RBAC can be complex, requiring significant planning and resources. Setting up roles and permissions for each user can be time-consuming and may require ongoing maintenance to ensure that access levels remain appropriate.
  3. Lack of Granularity: RBAC can lack granularity in terms of the level of access granted to users. This can result in situations where users have access to more resources than they need to perform their job, which can increase the risk of data breaches and other security incidents.
  4. Overreliance on Roles: RBAC can result in overreliance on roles, which can limit the ability to make granular access decisions based on specific user attributes, such as their level of trust or the sensitivity of the data they are accessing.
  5. Difficulty in Delegation: Delegating roles and permissions can be difficult, particularly in larger organizations where there are many different roles and levels of access. This can result in delays in granting access to resources, which can impact productivity and business operations.


Similar Reads

Context Based Access Control (CBAC)
In a dynamic network security environment, CBAC remains an important technology for securing and protecting the network from unauthorized access and malicious activity It enables granular control of network policies, maximizing security while maintaining flexibility and functionality. In recent times, Access (ACL) has been used for packet filtering
7 min read
Parser View (Role based CLI access)
Prerequisite - Role-based Access Control Parser view is used to create or modify a role based CLI access view and enter view configuration mode and provide security to access network resources. Commands to modify a parser view : include : to add any command in the viewexclude : to remove any commandinclude-exclusive : include command exclusively to
2 min read
Difference between Flow Control and Congestion Control
Flow Control and Congestion Control are traffic controlling methods for different situations. The main difference between flow control and congestion control is that, In flow control, rate of traffic received from a sender can be controlled by a receiver. On the other hand, In congestion control, rate of traffic from sender to the network is contro
4 min read
Difference between Control Structure and Control Statement
1. Control Structure :Control Structure, as name suggests, is basically a set of statements and control statements that are controlling their execution. 2. Control Statement :Control Statement, as name suggests, is basically a statement that is used to determine control flow of set of statements. It makes decision on basis of condition provided by
2 min read
Difference Between Flow Control and Error Control
In data transmission, the general aspect of maintaining effective and accurate transfer of data between gadgets is very important. This is where the flow control and the error control mechanisms will be of help. Flow control regulates the amount of data being transmitted from the sender to the receiver so that it does not overpower the receiver, wh
5 min read
Access Control Tactics in Computer Networks
Discretionary Access Control: Discretionary Access Control grants or restricts object access determined by the object’s owner. Controls are discretionary because an object owner with certain access permissions can pass on those permissions to another subject. In systems that utilize discretionary access controls, the owner of an object can choose w
2 min read
What is Network Access Control?
Network Access Control is a security solution that uses a set of protocols to keep unauthorized users and devices out of a private network or give restricted access to the devices which are compliant with network security policies. It is also known as Network Admission Control. It handles network management and security that implements security pol
6 min read
How to Prevent Broken Access Control?
Access control is a security mechanism to put restrictions on the accessibilities of the resources and decide who or what can view or use the resources of a company. This is checked after authentication, and what authorized users are allowed to do. It is not an easy task to do, any failure while checking, can lead to data modification or destructio
5 min read
Access Control in Computer Network
Access control is a security strategy that controls who or what can view or utilize resources in a computer system. It is a fundamental security concept that reduces risk to the company or organization. In this article, we are going to discuss every point about access control. In this article, we will learn about Access control and its authenticati
7 min read
Time based Access-List
Prerequisite - Access-lists (ACL) An access-list is used mainly for packet filtering. It is a sequential series of various permit or deny conditions in which if one of the condition matches, it is executed and no other condition is matched further. Also, it contains an implicit deny at the end therefore the rules should have atleast one permit cond
4 min read
Congestion Control techniques in Computer Networks
Congestion control refers to the techniques used to control or prevent congestion. Congestion control techniques can be broadly classified into two categories: Open Loop Congestion Control Open loop congestion control policies are applied to prevent congestion before it happens. The congestion control is handled either by the source or the destinat
5 min read
What is DCCP (Datagram Congestion Control Protocol)?
Congestion in a network means deterioration of network or services which are caused due to overloading of network nodes, basically, this problem is primarily associated with large networks, in which a large amount of data and information is being transmitted. Congestion can be caused by several reasons: either the routers which are being used are n
6 min read
Synchronous Data Link Control (SDLC) Loop Operation
Loop configuration is basically a communication link that is used to transmit data or information from one link station to another link station conferring the entire loop. At transmit port of the primary station, link connection gets initiated, connects one or more than one secondary station in a serial fashion, and after then ends back at the rece
3 min read
Network Control Protocol (NCP)
ARPANET included several protocols on the internet and NCP was one of them. NCP was a unidirectional or simplex protocol between two computers or devices. It provided user access and flow control to use computers and devices at remote locations and to transmit files between them. The NCP also allows protocols other than IP to use the serial link at
3 min read
Real-time Transport Control Protocol (RTCP)
Real-time Transport Protocol (RTP) allows only that type of message, which carries data from the source to the destination. But in some cases, we need some other type of messages in a session. The messages that can control the transmission and quality of data as well as also allow the recipients so that they can send feedback to the source or sourc
3 min read
Congestion Control in Datagram Subnets
In this article, we will discuss different approaches to Congestion control in the data-gram subnet. Also, we will discuss the drawback and will explain each approach in detail. Let's discuss them one by one. Pre-requisite -Congestion control Congestion control in data-gram and sub-nets :Some congestion Control approaches which can be used in the d
4 min read
Bandwidth Allocation Control Protocol (BACP)
Bandwidth Allocation Control Protocol (BACP) generally allows the negotiation with another party of the data call to simply request additional calls to be made to improve and increase the efficiency of the data throughput. BACP basically provides dynamic control mechanism over how the Point-to-Point Protocol (PPP) Multilink Protocol should function
3 min read
Logical Link Control (LLC) Protocol Data Unit
Logical Link Control (LLC) is a sublayer that generally provides the logic for the data link as it controls the synchronization, multiplexing, flow control, and even error-checking functions of DLL (Data Link Layer). DLL is divided into two sublayers i.e. LLC sublayer and MAC (Medium Access Control) sublayer. The basic model of LLC protocols is mod
3 min read
Flow Control in Data Link Layer
Flow control is design issue at Data Link Layer. It is a technique that generally observes the proper flow of data from sender to receiver. It is very essential because it is possible for sender to transmit data or information at very fast rate and hence receiver can receive this information and process it. This can happen only if receiver has very
4 min read
Cyber Security - Attacking through Command and Control
A C&C- Command, and Control server is basically a computer in control of a hacker or any cybercriminal, etc. which is maliciously used for commanding the various systems that have already been exploited or compromised by malware, and these servers are also used for receiving the desired data by the hacker from the compromised machines covertly
8 min read
Difference between RTS/CTS and DTR/DSR flow control
1. Request To Send/Clear To Send : RTS/CTS, as name suggests, is a flow mechanism in which Data Terminal Equipment (DTE) i.e. host assets or send RTS to Data Communication Equipment (DCE). This is simply done to indicate that host is ready to send data and modem can initiate or form a communication channel. Then DCE further asserts or send CTS to g
2 min read
Media Gateway Control Protocol (MGCP)
MGCP stands for Media Gateway Control Protocol. It is a protocol that is extensively used for signalling and controlling communications protocols applied in VoIP telecommunication systems. MGCP is next in line to Simple Gateway Control Protocol. MGCP reflects the architecture in which the endpoints are less capable devices that only executes comman
2 min read
Types of ICMP (Internet Control Message Protocol) Messages
Pre-Requisite: Internet Control Message Protocol (ICMP) Internet Control Message Protocol is a protocol used for error handling and debugging in the network layer. It is mainly used in network devices such as routers for sending errors and operations. The main work of the Internet Control Message Protocol is of reporting errors, between any two dev
4 min read
What are Issues in Flow Control Related to LANs?
Pre-requisites: What is Network Congestion? Common Causes and How to Fix Them?, TCP Congestion Control Congestion and flow control are two important issues that can affect the performance of a local area network (LAN). These issues can arise when there is a high volume of traffic on the network, which can lead to delays, dropped packets, and other
6 min read
When Transmission Control Protocol (TCP) most appropriate?
TCP(Transmission Control Protocol) is a protocol of the Transport layer. TCP is a connection-oriented, reliable, and secured protocol. To provide reliable service TCP implements Error control, Congestion control, Flow control. Services provide by TCP : The process to process communication -It is achieved using the port number.Stream Delivery Servic
2 min read
Slow Start Restart Algorithm For Congestion Control
Once a connection is established between client and server, the sender sends the data to the receiver in form of packets. If the network is congested then packets get dropped. This happens when the buffer of intermediaries devices such as Router is filled. TCP sender has to detect whether it has filled up ‘buffers at the intermediate devices’, and
5 min read
Link Aggregation Control Protocol
In the process of networking, wired and wireless both are useful methods. However, wired methods are proven more effective than wireless. But while networking, it’s troublesome to manage many wires at once. To solve this problem, link aggregation plays a vital role. since it’s known to carry multiple ports collectively as a single channel. In other
7 min read
What is Signaling Connection Control Part (SCCP)?
The Signaling Connection Control Part (SCCP) is an improvement to the MTP Level 3 which is known to provide connection-oriented and connectionless services, and the SCCP also provides an enhancement to address translation capabilities. Given Diagram provides a clear view of the improvements that SCCP provides over MTP services and the SCCP also pro
3 min read
Network Control Unit
Computer networks are a collection of devices that are connected together to exchange data and information. The network control unit (NCU) is a device that is responsible for controlling and managing the flow of data in a computer network. It plays a crucial role in ensuring that data is transmitted efficiently and reliably between devices. The NCU
3 min read
Logical Link Control and Adaptation Protocol (L2CAP)
The Logical Link Control and Adaptation Protocol (L2CAP) is a layer in the Bluetooth stack that provides crucial services for communication between Bluetooth devices. L2CAP offers segmentation and reassembly services for large packets to be transmitted across Bluetooth links and also allows for the multiplexing of higher-layer protocols and service
4 min read
Article Tags :