Disable guest account in Ubuntu 12.04

Guest account is enabled in Ubuntu 12.04 by default so that anyone can log in with guest account without a password.Below steps will show you how to disable guest account in Ubuntu 12.04(LightDM)

1.Open a terminal by pressing Ctl+Alt+t or searching “terminal” from Dash

2.Open file /etc/lightdm/lightdm.conf using below command in terminal

sudo gedit /etc/lightdm/lightdm.conf

3.Append below line the this file ,then click Save and exit

allow-guest=false

4.Restart service lightdm using below command from your terminal

sudo service lightdm restart

Note:All your running GUI applications will be closed

5.You are done,guest account is disabled.You will not see Guest Session on log-in screen now.

8 thoughts on “Disable guest account in Ubuntu 12.04

  1. Unable to save lightdm.conf

    for disabling guest user i have type
    sudo gedit /etc/lightdm/lightdm.conf
    then it opens a file i add new line
    allow-guest=false
    but after it i am unable to save this file error is
    “this is read only file unable to change”
    Please help

    Reply
      1. Jolyn

        Grazie mille per le informazioni. Abbiamo riportato quelle (poche) presenti nel documento citato. Provvederemo a correggere quanto prima le informazioni riguardanti l anno di realizzazione. Potrebbe in merito inviarci qualche estratto dei documenti che ha menzionato? Potremmo cosi fornire informazioni piu’ dettagliate in merito all opera. Buona sebt&a anbsp;&nrsp;6 Mi piace

        Reply
  2. Nikolay

    Not working here, I still see “Guest” on the login screen.
    I’ve edited the file, saved it, restarted lightdm, but the Guest is still there.
    Any ideas?

    Reply
    1. Liberty

      29 mars 206&##8210;Immobile&78217; reste un des mes trois albums en francais préférés même si le groupe était, pour moi, décevant live.L’album solo de Valérie Leulliot m’a franchement déçu, peut-être parce que j’en attendai trop donc je n’ai pas pris de place pour les concerts. Avec quelques regrets…

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *