28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

individual user accounts with passwords on the router so someone can always log in<br />

to the router (see Recipe 2.5).<br />

See Also<br />

Recipes 2.4, 2.5, 2.10, and 2.13<br />

2.10 Customizing Account Privileges<br />

Problem<br />

You want to create a custom privilege class to define the operations and actions a<br />

user can perform while logged in to the router.<br />

Solution<br />

Create a privilege class that allows users to read but not modify the configuration<br />

and then let them perform all operational mode commands:<br />

[edit system login]<br />

aviva@router1# set class operator-plus-read-config permissions [ admin clear<br />

configure floppy interface network reset routing shell snmp system trace view<br />

maintenance firewall rollback security ]<br />

<strong>Discussion</strong><br />

When you set up login accounts on the router (see Recipe 2.5), each account must<br />

have a privilege level, or class, which defines the operations and actions the user<br />

can and cannot perform on the router. Each privilege level consists of a collection<br />

of permission bits that specifies what a user is allowed to do. Table 2-1 lists all the<br />

permission bits.<br />

Table 2-1. Login class permissions<br />

Permission<br />

All (superuser)<br />

Delete data from system log, tracing,<br />

and other files<br />

All control-level operations (bits ending<br />

in -control)<br />

Configure the router<br />

Access removable media<br />

Halt and reboot the router; start a<br />

shell and become superuser<br />

Access the network<br />

Start and stop software processes<br />

Bit name<br />

all (can perform all actions)<br />

clear (using the clear commands)<br />

control (can view and change all portions of the configuration)<br />

configure (using the configure and commit commands)<br />

floppy<br />

maintenance (using the request system commands, and using the CLI<br />

start shell command and the su root command)<br />

network (using the ping, ssh, telnet, and traceroute commands)<br />

reset (using the restart command, and configure at [edit system<br />

processes])<br />

Customizing Account Privileges | 89<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!