Is "libvirt qemu" provided by Ubuntu 16.04 officially, or did I do something wrong/right?

$ grep -E 'libvirt|qemu' /etc/passwd"
libvirt-qemu:x:64055:134:Libvirt Qemu,,,:/var/lib/libvirt:/bin/false
libvirt-dnsmasq:x:124:137:Libvirt Dnsmasq,,,:/var/lib/libvirt/dnsmasq:/bin/false
share|improve this question
    
Can you please edit your question and show the output of grep -E 'libvirt|qemu' /etc/passwd ? – Byte Commander Mar 26 '17 at 11:39
1  
what display manager (GDM, SDDM, etc) are you using? it's probably a slight misconfiguration. if libvirt-qemu is shown but libvirt-dnsmasq isn't, then the display manager isn't filtering out /bin/false shells but is filtering out system accounts. libvirt-qemu has a high but normal-user UID. – quixotic Apr 2 '17 at 23:49
    
To answer @quixotic question please edit the content of /etc/X11/default-display-manager into your post. thank you for helping us help you! – Elder Geek Apr 14 '17 at 14:23
    
Even if it was answered "correctly" I have no way of testing and honestly accepting an answer, because I reinstalled Ubuntu. @ElderGeek – naughtyPenguin Apr 20 '17 at 4:14
up vote 2 down vote accepted

It appears that you have a configuration problem in the file /etc/lightdm/users.conf as users with the shell /bin/false as is the case with the libvirt-qemu should never show up in the account list for login or switch to. This is controlled by the the line hidden-shells=/bin/false /usr/sbin/nologin in the aforementioned /etc/lightdm/users.conf file.

Sources:

How do I hide a particular user from the login screen?

/etc/lightdm/users.conf on Ubuntu 14.04.5 LTS and 16.04.2 LTS

share|improve this answer

Simply use these two commands as root:

# echo -e "[User]\nSystemAccount=true" > /var/lib/AccountsService/users/libvirt-qemu

And

# service accounts-daemon restart
share|improve this answer
1  
This worked and is much simpler for Ubuntu 17.04. The setup described by Elder Geek was already in place, but still had the issue. – Dr. Zim Oct 21 '17 at 15:06

I accidentally pressed CtrlAltF10 once trying out some shortcuts I had seen on a Website this took me to a Black Fullscreen tty session where I typed in chvt N and startx to get out to GUI of Ubuntu but this failed and resulted in an additional account named "Libvirt qemu" above my present user name at the Login Page during reboot.

Anyone trying to figure out how to remove Libvirt qemu user, this is how I removed it :

  1. Go to System Settings -> User Accounts
  2. Unlock the UA control
  3. Click on Libvirt qemu account
  4. Remove Libvirt qemu by clicking the small "-" sign at bottom left side.
share|improve this answer
    
Thanks, that's very helpful and simple. I got the qemu account when I tried to install KVM for my android emulator's hardware acceleration. – Harsha Dec 22 '17 at 6:13

At one point either you, or another application installed as a prerequisite, qemu.

share|improve this answer
    
I had this problem due to installing gnome-boxes. – orschiro Dec 28 '17 at 18:59

For whatever reason the system user "libvirt-gemu" is created with the uid 64055 (at least in Ubuntu 16.04.2).

This is how 16.04.2 creates it:

libvirt-qemu:x:64055:130:Libvirt Qemu,,,:/var/lib/libvirt:/bin/false
libvirt-dnsmasq:x:121:129:Libvirt Dnsmasq,,,:/var/lib/libvirt/dnsmasq:/bin/false

And this is how it should be:

libvirt-qemu:x:125:130:Libvirt Qemu,,,:/var/lib/libvirt:/bin/false
libvirt-dnsmasq:x:121:129:Libvirt Dnsmasq,,,:/var/lib/libvirt/dnsmasq:/bin/false

To correct this simply change the uid of "libvirt-qemu" and it's belonging files. "Libvirt Qemu" will then disappear from the login!

Read e.g. nixCraft - How to Change a USER and GROUP ID on Linux For All Owned Files to know how to do this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.