Setting password via CLI

Im trying to set password using
passwd -p ’ Plain text password ’ root
passwd -p 'Plain text password admin

still without a success.
It will be used to automate Zero Touch config software.


Simply use passwd <username> and you will be prompted to enter your new password for that user:

passwd admin
passwd root

You can echo your new password and pipe into passwd so that you dont have to enter the password manually after you execute the command. Since password needs to be retyped, you can do:

echo -e 'Tester123\nTester123' | passwd admin

This will set admin password to ‘Tester123

Kind Regards,

1 Like

Thanks, it works now :slight_smile:

This topic was automatically closed after 15 days. New replies are no longer allowed.