I would like to know how to autologin as root on mint 17.1?

I've been able to login as root from the login screen (by enabling root access in login window settings and changing the theme to clouds).

But I have been unable to auto login (meaning that I don't have to enter my password).

I tried editing /etc/mdm/mdm.conf, and writing:


but that doesn't work (works for normal accounts though).

Does anyone have clue how to do it? I'm doing this just for testing so please don't tell me its not a good idea. I know its not a good idea to be root and I am doing it for research purpose only.

  • First you need to enable the root account. Once the account is enabled your config change should work... See also, RootSudo Documentation
    – eyoung100
    Jul 20, 2015 at 1:55
  • It doesnt. Have you tried it? The problem is in mdm code...
    – 6lix
    Jul 21, 2015 at 14:45
  • 1
    Consider Stopping mdm, then try this approach, then use startx
    – eyoung100
    Jul 21, 2015 at 17:07
  • if you read my question i need root auto login. not manual. i can do manual no problem. have you tried your approach and does it give auto root login? meaning when you turn on your computer after everything is loaded you are root? as i said previously i can login manually as root no problem
    – 6lix
    Jul 23, 2015 at 7:21
  • 2
    Why would anyone want to log into his / her system as root? Consider the inevitable security hole. Even if we knew the answer, should we share it? Jan 1, 2017 at 11:43

2 Answers 2


In System Settings click Login Window. Click tab for Options click Allow Root Login

  • that only allows root login. What I wanted to do is to auto login with root (so i dont have to enter username password)
    – 6lix
    Mar 9, 2015 at 20:14

The only working solution I found is to rid of mdm. There are other display managers like nodm, gdm, lightdm that you can install and configure them to autologin as root. There is also a issue about it on GitHub which seems to be closed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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