Disable guest account in Ubuntu Mate 22.04

Hello, I just performed a fresh install of Ubuntu Mate 22.04 and I would like to disable the guest session from appearing in the lightdm login screen. I have tried creating a file within /etc/lightdm/lightdm.conf.d called 50-my-custom-config.conf with the contents below, yet after a reboot the guest session still appears. Is there a correct way to disable the guest session?

[Seat:*]
user-session=mate
greeter-hide-users=false
greeter-show-manual-login=true
allow-guest=false

Not sure if it's the best way to do it but for me this worked:

nano /etc/lightdm/lightdm.conf.d/91-arctica-greeter-guest-session.conf

changing to:
allow-guest=false

reboot the machine and it's done

1 Like