Choose style:

Author Topic: Installation bug on auto login  (Read 1072 times)

0 Members and 1 Guest are viewing this topic.

Offline arky217

  • Member
  • ***
  • Posts: 170
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Installation bug on auto login
« on: October 25, 2017, 06:35:36 pm »
This seems to be a definite bug somewhere. I don't know how many distros it happens in, but I know that it happens in Peppermint 8 and in Ubuntu Mate 17.10.

When you install either Peppermint 8 or Ubuntu Mate 17.10 and you tell it to automatically log in, it creates the file /etc/lightdm/lightdm.conf which tells it to login the user name you gave during the install automatically.

However, if you then go into users and groups and tell it to require the password on login, it still does an automatic login !

The only way to require the password thereafter at login is to either edit that file and comment out the line that allows that user to auto login or else delete that file.

Once you have done that, it will then require the password at login.

If you then go back to users and groups and check for it not to require the password
at login, it will login automatically but it does not create that file, so that if you once again tell it to require the password at login, it will correctly do so.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Installation bug on auto login
« Reply #1 on: October 25, 2017, 06:51:45 pm »
That's not a bug, they are two separate and distinct features...

Users & Groups "Don't ask for password on login" only stops the login screen from requiring a password .. in other words, if you tick that box (and haven't enabled autologin) you will arrive at the login screen, but choosing a user account won't require a password (for that account) to continue.
(useful for multi user systems where you don't want to have to enter passwords on some or all accounts .. just select the user account and you're in)

LightDM Autologin is a completely different and separate feature .. it's usually only of use on single user systems as it doesn't present you with the login screen at all, instead automagically logging you onto the chosen account and taking you directly to that accounts desktop.
« Last Edit: October 25, 2017, 07:21:30 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline arky217

  • Member
  • ***
  • Posts: 170
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Installation bug on auto login
« Reply #2 on: October 25, 2017, 08:08:19 pm »
That's not a bug, they are two separate and distinct features...

Users & Groups "Don't ask for password on login" only stops the login screen from requiring a password .. in other words, if you tick that box (and haven't enabled autologin) you will arrive at the login screen, but choosing a user account won't require a password (for that account) to continue.
(useful for multi user systems where you don't want to have to enter passwords on some or all accounts .. just select the user account and you're in)

LightDM Autologin is a completely different and separate feature .. it's usually only of use on single user systems as it doesn't present you with the login screen at all, instead automagically logging you onto the chosen account and taking you directly to that accounts desktop.

OK, I understand what you are saying but how is a person who chose auto login at install to even know about that file. If he later wants to require
entering his password in order to logon, he goes to his user account and checks require password at logon, but to his dismay, the OS still boots up
automatically. Seems that would be very confusing to a new user. It sure was to me, and still is even after finding out the reason why.
Just saying, not very user friendly.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Installation bug on auto login
« Reply #3 on: October 26, 2017, 09:40:46 am »
Can you suggest a solution that doesn't loose either option that:-

a) doesn't require us to rewrite gnome-system-tools
and
b) would be easier for users

?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline arky217

  • Member
  • ***
  • Posts: 170
  • Karma: 10
  • New Forum User
    • View Profile
  • Peppermint version(s): 9
Re: Installation bug on auto login
« Reply #4 on: October 26, 2017, 11:25:37 pm »
Can you suggest a solution that doesn't loose either option that:-

a) doesn't require us to rewrite gnome-system-tools
and
b) would be easier for users

?

Well, I'm not a code writer but it seems the solution should be that when the user goes to Users & Groups
 and makes the change from 'Password: Not asked on logon' to 'Password: Asked on logon', then that's
what it should do, regardless of whichever way he chose at installation.

(Or, if that's too inconvenient to accomplish, at least warn the user at installation
of what will happen if he chooses the logon automatically option.)

I'm certainly not faulting Peppermint on this; like I mentioned, it also occurs with Ubuntu Mate
and likely with other Ubuntu based distributions.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Installation bug on auto login
« Reply #5 on: October 27, 2017, 04:48:58 am »
Quote
it seems the solution should be that when the user goes to Users & Groups
 and makes the change from 'Password: Not asked on logon' to 'Password: Asked on logon', then that's
what it should do

That's exactly what it DOES do if you've not set Autologin in LightDM.

We can't rewrite gnome-system-tools (users & groups), nor would we want to because that would likely remove the ability to not have the password asked in multi-user environments.

I **may** be able to look into a separate GUI (say launched from the Peppermint Settings Panel) where the user can enable autologin for a particular account, or disable it altogether .. I'll have to think of the security implications first though.

That said, it may be that LightDM gets replaced anyway in the near future, nobody's quite sure of LightDM's future now Ubuntu have moved to GDM .. so it may all be a waste of effort.
« Last Edit: October 27, 2017, 04:51:11 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec