chpass

Add or change user database information, including login shell and password. See also: passwd. More information: https://man.netbsd.org/chpass.

su -c chpass

chpass -s {{path/to/shell}}

chpass -s {{path/to/shell}} {{username}}

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}}