Skip to content

askmeaboutlinux

Knowledge not shared benefits no one.

  • Home
  • About Ask Me About Linux

Remove guest login or disable guest login in Ubuntu

Geetu R. Vaswani Information, Information, Linux, Security, Ubuntu August 27, 2012November 2, 2019 1 Minute

When you start up the Ubuntu desktop, you notice that it shows the Guest login. To prevent this from appearing on the login screen, do the following:

  1. Start up the terminal on your system
  2. Backup the /etc/lightdm/lightdm.conf file for Ubuntu versions 13.10 and below:
    $ sudo cp /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.org <enter>
  3. Backup the /etc/lightdm/lightdm.conf.d/10-xubuntu.conf file.
  4. Modify the file to add a line “allow-guest=false” as below for Ubuntu versions 13.10 and below
    $ sudo gedit /etc/lightdm/lightdm.conf <enter>
    Add a line to the end of the file:
    allow-guest=false
  5. Backup the /etc/lightdm/lightdm.conf.d/10-xubuntu.conf file for Ubuntu versions 14.04 onwards:
    $ sudo cp /etc/lightdm/lightdm.conf.d/10-xubuntu.conf /etc/lightdm/lightdm.conf.d/10-xubuntu.conf.org <enter>
  6. Modify the above file and add the line shown in green text as in 4 above to this file.
  7. Save the file.

The next time you start your computer, you will not find the Guest login on the login screen.

Share this:

  • Twitter
  • Facebook

Like this:

Like Loading...

Related

  • Tagged
  • disable guest
  • guest
  • Linux
  • login
  • security
  • ubuntu

Published by Geetu R. Vaswani

View all posts by Geetu R. Vaswani

Published August 27, 2012November 2, 2019

Post navigation

Previous Post Hide list of users on Ubuntu login screen
Next Post Updating Ubuntu packages, apply Ubuntu patches manually using the command line

@askmeaboutlinux

Tags

adb android android apps android emulator android studio applications Apps apt-get audio boot cross-platform cryptography desktop eclipse email email client encryption error evolution fedora Fedora 15 fedora 16 firefox firmware Gnome Gnome 3 gnucash gnupg GNU Privacy Guard google google drive gpg hardware install installation internet java java GUI java program key pair keyring Linux linuxmint linux mint Linux Shell mobile multimedia network openwrt package Package Manager packages privacy private key program programming public key router security services shell shell prompt software sony xperia zr swing terminal thunderbird ubuntu upgrade virtualbox windows wireless router wordpress XFCE xubuntu
Website Powered by WordPress.com.
  • Follow Following
    • askmeaboutlinux
    • Already have a WordPress.com account? Log in now.
    • askmeaboutlinux
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: