shopify analytics ecommerce

Change Linux password in Shell Script

You want to modify in Shell Script system password, you can use the passwd and chpasswd done in Linux, modify the command line approach is to use a password, and then into the Shell Script, their usage are:

passwd role is to change the password, but in general usage is modified in interactive mode, the following parameters are –stdin passwd and read the pipe input:

The above instructions modify the password of USERNAME to NEWPASSWORD.

In addition to using passwd, you can also use chpasswd completion, syntax similar with passwd:

With examples like passwd, modify password of USERNAME to NEWPASSWORD.

Leave a Reply