Fixed it in tomcat9 only, by not setting shell in sysusers.d/tomcat9.conf .
The slightly ugly part is that systemd sets the default shell to
/sbin/nologin , not /usr/sbin/nologin that exists on Ubuntu.
The effect is the same, user can't log in it is just a little ugly and with mergedusr the problem goes away thus I have not filed a bug for it.
Fixed it in tomcat9 only, by not setting shell in sysusers. d/tomcat9. conf .
The slightly ugly part is that systemd sets the default shell to
/sbin/nologin , not /usr/sbin/nologin that exists on Ubuntu.
The effect is the same, user can't log in it is just a little ugly and with mergedusr the problem goes away thus I have not filed a bug for it.