Add or change user database information, including login shell and password. See also:
passwd
. More information: https://man.netbsd.org/chsh.
su -c chpass
chpass -s {{path/to/shell}}
chpass chsh -s {{path/to/shell}} {{username}}
passwd
file format:su -c 'chpass -a {{username:encrypted_password:uid:gid:...}} -s {{path/to/file}}' {{username}}
su -c 'chpass -l -s {{path/to/shell}}' {{username}}
su -c 'chpass -y -s {{path/to/shell}}' {{username}}