Is it normal that tomcat user created in tomcat setup to be seen in login screen? Is there a way to hide that from login screen?
2 Answers
This appears to be a bug. The tomcat user is a system account and not a user account. There is now way that it should be displayed on your login screen. I had a similar issue when I installed KVM. It listed "Libvirt Qemu" as a user on login screen. The issue was reported as a bug on launchpad:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1672112
If you get annoyed by a particular user appearing on your login screen. You can see the following post to hide a user from login/welcome screen
- 1,609
- 13
- 15
This is how I fixed mine on Ubuntu 16.04:
Change
UIDto a value lower than 1000 so user will be hidden bylightdm:sudo usermod -u 998 tomcatDo same for
group id - GID"sudo groupmod -g 998 tomcatSince
tomcatwon't have access to the/opt/tomcatmodify or reset ownership:sudo chgrp -R tomcat /opt/tomcatPlease note that in step
1above terminal will display process id that used bytomcat. Kill them and start fromstep 1:sudo kill -9 <process_id>
Note:
You can get the tomcat process id's with:
ps -eLo pid,ppid,stat,euser | grep tomcat
And the new UID I used id purely random pick that which is ok by you.
- 727
- 37,534