Authorization

This scenario shows how to set up per-command authorization.

Tacacs Method Non-Privileged User

Description

In this case, the same scenario is tested but with a non privileged user called testmonitor.

Scenario

Step 1: Set the following configuration in DUT0:

set interfaces ethernet eth0 address 10.215.168.20/24
set system aaa server tacacs serv1 address 10.215.168.1
set system aaa server tacacs serv1 key 1234
set system aaa group tacacs tacgroup1 server serv1
set system aaa list list1 method 1 group tacacs tacgroup1
set system cli aaa authorization list1
set system login user testmonitor authentication plaintext-password admin
set system login user testmonitor role monitor

Step 2: Ping IP address 10.215.168.1 from DUT0:

admin@DUT0$ ping 10.215.168.1 count 1 size 56 timeout 1
Show output
PING 10.215.168.1 (10.215.168.1) 56(84) bytes of data.
64 bytes from 10.215.168.1: icmp_seq=1 ttl=64 time=0.148 ms

--- 10.215.168.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.148/0.148/0.148/0.000 ms

Step 3: Run command show version at DUT0 and expect this output:

Show output
OS vendor:                 Teldat
OS name:                   OSDx
OS version:                v3.8.1.6
OS Linux kernel:           5.10.127
OS built by:               jenkins@daphne
OS build date:             Tue Oct 24 11:21:11 UTC 2023
OS installation:           physical
OS boot mode:              user
License:                   VM_BASE Firewall eth-Rate-Permit-Full

Hardware vendor:           QEMU
Hardware model:            VM
Hardware OEM model:        Standard PC (i440FX + PIIX, 1996)
Hardware version:          pc-i440fx-5.2
Hardware UUID:             25ec17a2-bf95-5adf-aa7e-8c8471a65822
Hardware architecture:     amd64
Hardware fwid:             iso
Hardware base MAC:         de:ad:be:ef:6c:10
Hardware cpu:              1 x QEMU Virtual CPU version 2.5+ (1 cores)

Last reboot reason:        Performed by user

Date:                      Mon 30 Oct 2023 01:17:13 PM UTC
Uptime:                    2:03:24
CPU load (1m, 5m, 15m):    0.13 0.11 0.09
CPU usage % (1m):          6.07
Storage usage (kB):        294308/8144384
Memory usage (kB):         351220/1639428
Temperature (ºC):          0
Users logged in:           1
Mode (current/next boot):  user/user

Hostname:                  osdx

Step 4: Run command show date at DUT0 and expect this output:

Show output
CLI Error: Unauthorized

Step 5: Run command show running at DUT0 and expect this output:

Show output
CLI Error: Insufficient privileges