Skip to content

Commit

Permalink
T1324 - update documtation for 'set system login user level'
Browse files Browse the repository at this point in the history
  • Loading branch information
hagbard-01 committed Apr 5, 2019
1 parent baa8149 commit c77c4df
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions docs/system/systemusers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,21 @@
System Users
------------

VyOS supports two levels of users: admin and operator.
The default vyos user account, as well as newly created user accounts, have all capabilities to configure the system.
All accounts have sudo capabilities and therefore can operate as root on the system.
Setting the level to admin is optional, all accounts on the system
will have admin privileges.

The operator level restricts a user to operational commands and prevents
changes to system configuration. This is useful for gathering information
about the state of the system (dhcp leases, vpn connections, routing tables,
etc...) and for manipulating state of the system, such as resetting
connections, clearing counters and bringing up and taking down connection
oriented interfaces.

The admin level has all of the capabilities of the operator level, plus the
ability to change system configuration. The admin level also enables a user
to use the sudo command, which essentially means the user has root access to
the system.

Creating Login User Accounts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Create user account `jsmith`, with `admin` level access and the password
`mypassword`
Create user account `jsmith` and the password `mypassword`.

.. code-block:: sh
set system login user jsmith full-name "Johan Smith"
set system login user jsmith authentication plaintext-password mypassword
set system login user jsmith level admin
The command:

Expand Down Expand Up @@ -63,4 +53,4 @@ The following command will load the public key `dev.pub` for user `jsmith`

.. code-block:: sh
loadkey jsmith scp://devuser@dev001.vyos.net/home/devuser/.ssh/dev.pub
loadkey jsmith scp://devuser@dev001.vyos.net/home/devuser/.ssh/dev.pub

0 comments on commit c77c4df

Please sign in to comment.