[Solved] Reverting auto login to standard login (18.2 Cinn.)

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Post Reply
User avatar
ElStellino
Level 3
Level 3
Posts: 156
Joined: Thu Nov 08, 2012 9:54 am
Location: Tenerife

[Solved] Reverting auto login to standard login (18.2 Cinn.)

Post by ElStellino »

Hi,

I installed yesterday night on a VM 18.2 Cinnamon with the intention of testing it, and when it came to the point in which I had to chose whether to have auto login or not, I went for that, realising later that one of the new features I wanted to test was actually the new login.

Now, while in MDM there was an Autologin option under Login Window Preferences, in LightDM I just got this:
Image
I don’t seem to find a setting anywhere that controls the autologin feature, and don’t know if it’s a bug and if so I’ll report it accordingly, or… I don’t know.
Last edited by ElStellino on Tue Jun 13, 2017 6:02 am, edited 1 time in total.
Linux Mint 19.1 Tessa – Cinnamon-64

Hardware:
MB - ASRock H55DE3
Core i3 530 2.93Ghz 
4Gb DDR3 Ram Dual Channel.
Onboard graphics.

User avatar
Pjotr
Level 21
Level 21
Posts: 14979
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: revert auto login to standard login (18.2 Cinn.)

Post by Pjotr »

Code: Select all

gksudo xed /etc/lightdm/lightdm.conf
Put a hashtag before the line with the username in it. For example:

Code: Select all

[Seat:*]
autologin-guest=false
#autologin-user=pjotr
autologin-user-timeout=0
Save and close.

Reboot.

Edit: advice modified after input from forum member Cosmo.
Last edited by Pjotr on Mon Jun 12, 2017 8:49 am, edited 1 time in total.
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Cosmo.
Level 23
Level 23
Posts: 17817
Joined: Sat Dec 06, 2014 7:34 am

Re: revert auto login to standard login (18.2 Cinn.)

Post by Cosmo. »

A GUI choice for autologin is not implemented at now.

Open the file lightdm.conf as explained by Pjotr and just remove the user name (so that the line ends with the = sign). Leave all other lines as they are.

User avatar
Pjotr
Level 21
Level 21
Posts: 14979
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: revert auto login to standard login (18.2 Cinn.)

Post by Pjotr »

Cosmo. wrote:Open the file lightdm.conf as explained by Pjotr and just remove the user name (so that the line ends with the = sign). Leave all other lines as they are.
That will work, but my hashtags advice will also work (I've tested it). :)
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Cosmo.
Level 23
Level 23
Posts: 17817
Joined: Sat Dec 06, 2014 7:34 am

Re: revert auto login to standard login (18.2 Cinn.)

Post by Cosmo. »

Pjotr wrote:That will work, but my hashtags advice will also work (I've tested it). :)
At first it does, now doubt. But it will likely create with some time some confusion. To reproduce it:

Open the settings GUI and switch the allowance of guest sessions. If you now open the file again you will find, that the section gets created a second time; understandable, because with the hash tag the existing section cannot get recognized as such. Besides that the method to just remove the user name is quicker. The next time autologin shall get used again, but possibly for another account, the user name has to get possibly get entered in any case.

Besides that a setting file with nothing than comment lines does not make much sense. You could in this case simply rename the file, if you want to keep it as a kind of template.

User avatar
Pjotr
Level 21
Level 21
Posts: 14979
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: revert auto login to standard login (18.2 Cinn.)

Post by Pjotr »

You have a point there....

I'll change my advice into this:

Code: Select all

[Seat:*]
autologin-guest=false
#autologin-user=pjotr
autologin-user-timeout=0
.... so just one hashtag, before the line with the username. I prefer hashtags for disabling code lines, because they're easily recognizable and the easiest to undo.
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
ElStellino
Level 3
Level 3
Posts: 156
Joined: Thu Nov 08, 2012 9:54 am
Location: Tenerife

Re: revert auto login to standard login (18.2 Cinn.)

Post by ElStellino »

Oh, wow, thanks guys.
I didn’t receive any notification and now I find a great thread with loads of information.
Stellar! I am going to try now.
Linux Mint 19.1 Tessa – Cinnamon-64

Hardware:
MB - ASRock H55DE3
Core i3 530 2.93Ghz 
4Gb DDR3 Ram Dual Channel.
Onboard graphics.

User avatar
ElStellino
Level 3
Level 3
Posts: 156
Joined: Thu Nov 08, 2012 9:54 am
Location: Tenerife

Re: revert auto login to standard login (18.2 Cinn.)

Post by ElStellino »

Marking as [solved] as it worked.
Linux Mint 19.1 Tessa – Cinnamon-64

Hardware:
MB - ASRock H55DE3
Core i3 530 2.93Ghz 
4Gb DDR3 Ram Dual Channel.
Onboard graphics.

vlad1777d
Level 1
Level 1
Posts: 33
Joined: Fri Mar 13, 2015 6:20 pm

Re: [Solved] Reverting auto login to standard login (18.2 Cinn.)

Post by vlad1777d »

I had this issue too. Thanks, it solved it =)

Maestr0
Level 1
Level 1
Posts: 2
Joined: Fri Apr 08, 2016 3:33 am

Re: revert auto login to standard login (18.2 Cinn.)

Post by Maestr0 »

Pjotr wrote:You have a point there....

I'll change my advice into this:

Code: Select all

[Seat:*]
autologin-guest=false
#autologin-user=pjotr
autologin-user-timeout=0
.... so just one hashtag, before the line with the username. I prefer hashtags for disabling code lines, because they're easily recognizable and the easiest to undo.
This worked for me as well. Thanks guys, it's help like this that makes Linux (and Linux Mint in particular) that much more awesome to use!

Post Reply

Return to “Cinnamon”