Passwd

From Bashlinux
Jump to: navigation, search

How to setup user's password from a non-interactive command line

Just run the command

echo user:password | chpasswd

Note that user and password should be in plain text