I need to synchronize the user account and password with an external source on a system with busybox and openssl installed. When an external source tells my system to update credentials, how do I change the user password in a script? I will have a password in plain text.
This needs to be automated, and from what I can tell, busybox passwd is interactive, and I really don't want to write the www1 type for wwwwww, if possible. It looks like openssl can generate password hashes (openssl passwd -1 -salt "abcdefgh" {password}), but do I need to directly change / etc / shadow?
Busybox has these commands available.
linux openssl busybox change-password
indiv
source share