Disable Guest Login
To disable Guest Login or guest session, simply open Terminal and execute the following command:
You will be asked for root password, type it and hit Enter. Once done, you have to restart the computer in order to see the changes. Alternatively, you can run the following command instead of restarting:
- sudo /usr/lib/lightdm/lightdm-set-defaults -l false
- sudo restart lightdm
As shown in the picture above, there is no guest login option available.
Enable Guest Login
In case, you change your mind and want to enable the guest login again, simply execute the following command:
Once enabled, restart the computer or execute the following command:
- sudo /usr/lib/lightdm/lightdm-set-defaults -l true
Regards :)
- sudo restart lightdm
0 comments:
Post a Comment