To configure usernames and passwords in SONiC, follow these steps:
To add a new user, use the command:sudo useradd <new-username>
Example:admin@sonic:~$ sudo useradd new-username
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)
To check the list of configured users, use the following command:show users