Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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.