Changing another user's shell
chsh -s /usr/bin/new-shell username
If the user has the privilege to do this and uses key auth without a password, it won't ask for a password here. If you run this as a "normal" user, it will ask for a password, even if that user uses key auth and does not have a password.
#unix #shell #command #privileges #password