Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have enabled root to login from screen. I want disable it keep normal and guest user on login screen only because even if I login with normal user for shutting down my machine I have to login with root which was not a problem before enabling root login from screen

share|improve this question

1 Answer 1


Edit /etc/gdm/custom.conf file and remove/comment out AllowRoot=true.


Edit /etc/kde4/kdm/kdmrc file and change AllowRootLogin=true for AllowRootLogin=false.

In LightDM

This procedure disables the "Other" menu, so you can type the username root and login. You must edit /etc/lightdm/lightdm.conf and add greeter-show-manual-login=false. Then reboot.

To disable root login just type:

sudo passwd -dl root
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.