1

Yes! I want to get rid of the guest account on Ubuntu. How do I do this??

I do not want this account but neither I find it in /etc/passwd and /etc/group nor within the users by navigating to system Settings -> user accounts...

AzkerM
  • 10,270
  • 6
  • 32
  • 51
grizzlysmit
  • 53
  • 1
  • 7

2 Answers2

0
  1. Open /etc/lightdm/lightdm.conf.d/50-unity-greeter.conf with root rights.
  2. Append the line allow-guest=false
  3. Reboot.
0

I don't know if you can remove the account, but you can disable it : it won't be an option at login.

  • Edit /etc/lightdm/lightdm.conf

    sudo nano /etc/lightdm/lightdm.conf
    
  • Add the following line at the end :

    allow-guest = false
    
  • Save CTRL + O

  • Quit the text-editor CTRL + X


Or in one command-line :

echo "allow-guest = false" | sudo tee -a /etc/lightdm/lightdm.conf
MrVaykadji
  • 5,875
  • 2
  • 32
  • 55