Skip to content

Instantly share code, notes, and snippets.

@lohenyumnam
Last active February 10, 2018 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lohenyumnam/f0cdc22938aa44b9d5578228bfafad34 to your computer and use it in GitHub Desktop.
Save lohenyumnam/f0cdc22938aa44b9d5578228bfafad34 to your computer and use it in GitHub Desktop.

Disable Ubuntu Guest Session feature.

Disabling the feature If you prefer to not allow guest access to your computer, you can disable the Guest Session feature. To do so, press Ctrl+Alt+T to open a terminal window, and then run this command:

sudo sh -c 'printf "[Seat:*]\nallow-guest=false\n" >/etc/lightdm/lightdm.conf.d/50-no-guest.conf'

The command creates a small configuration file. To re-enable Guest Session, simply remove that file:

sudo rm /etc/lightdm/lightdm.conf.d/50-no-guest.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment