Friday, January 25, 2013

[Ubuntu] How to disable guest & remote login account in 12.10?

Having the Guest and Remote Login account enabled by default is really not my preference. Personally I think these two accounts should be disabled by default especially privacy is getting more & more important to individual nowadays where most of private files are stored digitally.

I'm not sure why Ubuntu chose to enable them, but if you just hate it like I do, you can disabled them by:

Remove guest account:
sudo /usr/lib/lightdm/lightdm-set-defaults -l false
sudo /usr/lib/lightdm/lightdm-set-defaults --allow-guest false

Remove remote login:
sudo /usr/lib/lightdm/lightdm-set-defaults -R false
sudo /usr/lib/lightdm/lightdm-set-defaults--show-remote-login false

Remove both:
sudo /usr/lib/lightdm/lightdm-set-defaults -l false -R false
sudo /usr/lib/lightdm/lightdm-set-defaults --allow-guest false --show-remote-login false

Do remember to reboot after that.

I have once cannot configure it probably with the full command "--allow-guest" and "--show-remote-login" even without typo error. If you do encounter that, simply use the "-l" and "-R".

No comments:

Post a Comment