This user was created using this command:
sudo adduser --system --home=/opt/user --group user
But now I want that user to be able to login. I can become that user using
sudo, but also would like to directly log in using password.
I tried using this command:
sudo passwd user
It lets me add password for user. When I try to login, it logins but instantly exits.