-1

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:

AutomaticLoginEnable=true
AutomaticLogin=root

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.

slm
  • 363,520
  • 117
  • 767
  • 871
6lix
  • 17
  • 1
  • 1
  • 3
  • First you need [to enable the root account](http://askubuntu.com/questions/44418/how-to-enable-root-login). Once the account is enabled your config change should work... See also, [RootSudo Documentation](https://help.ubuntu.com/community/RootSudo) – eyoung100 Jul 20 '15 at 01:55
  • It doesnt. Have you tried it? The problem is in mdm code... – 6lix Jul 21 '15 at 14:45
  • 1
    Consider Stopping `mdm`, then try [this approach](http://askubuntu.com/questions/168706/how-do-i-auto-login-as-root-into-the-tty-upon-boot), then use `startx` – eyoung100 Jul 21 '15 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 '15 at 07: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? – Vlastimil Burián Jan 01 '17 at 11:43

2 Answers2

0

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

BobH
  • 1
  • 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 09 '15 at 20:14
0

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.

VarunAgw
  • 567
  • 4
  • 18