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

    • Related Articles

    • How to do Username & Password configuration in SONic

      Users shall use the linux command "useradd" to add new users. Users shall use the linux command "passwd" to change the password for the specific username. admin@sonic:~$ sudo useradd new-username admin@sonic:~$ sudo passwd new-username New password- ...
    • How to Configure snmp in broadcom sonic

      SNMP Overview Simple Network Management Protocol (SNMP) is a widely used application-layer protocol that enables centralized monitoring and management of network devices such as switches, routers, and servers. It supports real-time alerts, ...
    • Changing the Admin Password in SONiC

      To enhance security, it’s important to change the admin password in SONiC regularly. Follow these steps to change the password for the admin user. Run the Password Change Command: Execute the following command to initiate the password change: sudo ...
    • How to do Admin password change in SONiC?

      admin@sonic:~$ sudo passwd admin New password- (Enter the new password)Retype new password- (Re-Enter the new password
    • How to configure snmp in community sonic

      SNMP Overview Simple Network Management Protocol (SNMP) is a widely used application-layer protocol that enables centralized monitoring and management of network devices such as switches, routers, and servers. It supports real-time alerts, ...