Username and Password Configuration in SONiC

Username and Password Configuration in SONiC

Adding and Managing Users

To configure usernames and passwords in SONiC, follow these steps:

Add a New User

To add a new user, use the command:
sudo useradd <new-username>

Example:
admin@sonic:~$ sudo useradd new-username

Change User Password

To set or change the password for the new user, use the command:
sudo passwd <new-username>

Example:
admin@sonic:~$ sudo passwd new-username
Prompt:
New password- (Type the new password)

Verify Users

To check the list of configured users, use the following command:
show users