How remove (disable) guest session on Ubuntu 16.04


 

Method 1: using terminal 

sudo sh -c "echo 'allow-guest=false' >> /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf"

     or

sudo sh -c 'printf "[Seat:*]\nallow-guest=false\n" > /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf'  (this will create a new file : 50-no-guest.conf  )



Method 2: using text editor (GUI]

gksu gedit  /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf    and add this line to it :

 allow-guest=false

    or

gksu gedit  /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf'    and add this lines to it

[Seat:*]
allow-guest=false


Don't forget to Subscribe / like & share.
Djalel Oukid

Science teacher, PhD student, Master degree in Microbial biotechnology , Microbiologist, designer, video editor, podcaster & blogger. linkedin portfolio github

Comments are welcomed and encouraged on this blog. Spam, abusive and off-topics comments will be deleted.Please read our Comments policy before commenting.

Post a Comment (0)
Previous Post Next Post
Blackview 5G Rugged Smartphone, 6.36 Inch, IP68 & IP69K & MIL-STD-810G, MediaTek Dimensity 800, 8GB+256GB, Sony® IMX582 48MP triple camera, 5280mAh