How to disable Guest login on Ubuntu 16

How to disable Guest login on Ubuntu 16

Ubuntu 16

For security issue, we recommend to disable Guest login on your Ubuntu. For that, you need do as this guide.

Step 1:  Install gksu package

root@ubuntu:~# apt-get install gksu
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libgksu2-0
The following NEW packages will be installed:
gksu libgksu2-0
0 upgraded, 2 newly installed, 0 to remove and 469 not upgraded.
Need to get 123 kB of archives.
After this operation, 877 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 libgksu2-0 amd64 2.0.13~pre1-6ubuntu8 [71.8 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 gksu amd64 2.0.2-9ubuntu1 [51.5 kB]
Fetched 123 kB in 1s (87.0 kB/s)
Selecting previously unselected package libgksu2-0.
(Reading database … 187805 files and directories currently installed.)
Preparing to unpack …/libgksu2-0_2.0.13~pre1-6ubuntu8_amd64.deb …
Unpacking libgksu2-0 (2.0.13~pre1-6ubuntu8) …
Selecting previously unselected package gksu.
Preparing to unpack …/gksu_2.0.2-9ubuntu1_amd64.deb …
Unpacking gksu (2.0.2-9ubuntu1) …
Processing triggers for libc-bin (2.23-0ubuntu2) …
Processing triggers for gconf2 (3.2.6-3ubuntu6) …
Processing triggers for man-db (2.7.5-1) …
Processing triggers for gnome-menus (3.13.3-6ubuntu3) …
Processing triggers for desktop-file-utils (0.22-1ubuntu4) …
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160321-0ubuntu1) …
Rebuilding /usr/share/applications/bamf-2.index…
Processing triggers for mime-support (3.59ubuntu1) …
Setting up libgksu2-0 (2.0.13~pre1-6ubuntu8) …
update-alternatives: using /usr/share/libgksu/debian/gconf-defaults.libgksu-sudo to provide /usr/share/gconf/defaults/10_libgksu (libgksu-gconf-defaults) in auto mode
Processing triggers for gconf2 (3.2.6-3ubuntu6) …
Setting up gksu (2.0.2-9ubuntu1) …
Processing triggers for libc-bin (2.23-0ubuntu2) …
root@ubuntu:~#

Step 2: Disable Guest login by this step

Open Terminal and run following

# gksu gedit /etc/lightdm/lightdm.conf

Add following lines

[SeatDefaults]

greeter-session=unity-greeter

allow-guest=false

 

Step 3: Restart service and done

# sudo /etc/init.d/lightdm restart

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>