Friday, October 16, 2015

How to disable Ubuntu’s Guest Session

Guest Session - which anyone can log into to the desktop through Guest session – no password required. If you'd restrict access to your computer, 

Ubuntu doesn’t expose an easy option to disable this feature. If you poke around the User Accounts configuration tool, where you might expect to find such an option, you won’t find one. To disable it, we’ll have to edit lightdm.conf, which controls the LightDM display manager (login screen)’s settings.
Open LightDM’s configuration file in a text editor through entering the following commands in Terminal (Ctrl+Alt+T), 

sudo gksu gedit /etc/lightdm/lightdm.conf

You’ll be prompted to enter your password. After you do, it shows contents of the file.

if it is not shows just copy and paste it.

after that add the following line to the end of the file, in the [SeatDefaults] section:


Save the file after adding the line.The changes will take effect when you restart your computer. 

No comments: