How remove (disable) guest session on Ubuntu 16.04 - Linux-Tech & More

NEWS

Wednesday, July 13, 2016

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.

No comments:

Comments are welcomed and encouraged on this blog. Spam, abusive and off-topics comments will be deleted.
For an advanced comments and discussion service, you can use Disqus.
Click Notify me, to get emails when I or someone else replies to your comment.

Post a Comment