Adding users

Created by Yuriy Andamasov, Modified on Wed, 10 Jan at 11:57 AM by Srividya Anantapatnaikuni

Article review date
2024-01-08
Validated for VyOS versions1.2.5

New users may be added to a VyOS system using the following commands:

vyos@vyos-rtr:~$ configure
vyos@vyos-rtr# set system login user jsmith full-name "John Smith"
vyos@vyos-rtr# set system login user jsmith authentication plaintext-password examplepassword
vyos@vyos-rtr# set system login user jsmith level admin
vyos@vyos-rtr# commit
vyos@vyos-rtr# save

This will create a new user with the username jsmith and the password examplepassword. This user will have admin privileges; to create an operator-level user, replace admin with operator in the second to last line.

You may also wish to configure SSH public key authentication for this user at this time.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article