How to disable guest account?

Asked by Wise Melon

Is there any way to disable the guest account so as to prevent even someone on the guest account from logging into your computer?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Wise Melon
Solved:
Last query:
Last reply:
Revision history for this message
Wise Melon (wise-melon-deactivatedaccount) said :
#1

I found out how to do it in Terminal with this command:

sudo sh -c 'printf "[SeatDefaults]\nallow-guest=false\n" >/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf'

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

You can also run:

sudo passwd -l guest

To lock the account.