After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321941 - automatic login broken with typed username
automatic login broken with typed username
Status: RESOLVED DUPLICATE of bug 347101
Product: gdm
Classification: Core
Component: general
2.8.x
Other All
: Normal minor
: ---
Assigned To: GDM maintainers
GDM maintainers
: 335234 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-11-20 16:08 UTC by Adonikam Virgo
Modified: 2006-07-10 23:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Adonikam Virgo 2005-11-20 16:08:02 UTC
The automatic login username box in gdmsetup allows a user to type a (valid)
username which is not used when they click the close button.
There are two possible solutions:
Disallow input of text in box to force the user to select an option.
Validate the text to ensure the username exists and use it.

Other information:
Comment 1 Brian Cameron 2005-12-25 01:34:52 UTC
Yes, this dialog is a bit broken.  It shouldn't allow you to type in a value
at all.  You have to add the user to the "Include" list on the "Users" tab
and then you can pick the user in the drop down list.

Try this.  If using an older version of gdmsetup, you may need to restart gdmsetup for the user to appear in the list after adding to the "Include" list.  Annoying,
but this problem is fixed in the latest version of gdmsetup.

Probably the right solution is to detach the Automatic/Timed login lists from the "Include/Exclude" lists alltogether and just let the user type in the username and accept it if it is a valid username.  If we want to be paranoid
we could pop-up a dialog complaining that the user is in the Exclude List or
below the MinimalUid value. 

We should also add the ability to modify the Minimal UID value on the "Users"
tab since this is needed to make root work with timed/automatic login.  Some
users want to do this, and its annoying to have to edit the GDM configuration files directly.

Comment 2 Brian Cameron 2006-03-20 23:07:38 UTC
*** Bug 335234 has been marked as a duplicate of this bug. ***
Comment 3 Jon Smirl 2006-03-21 00:16:09 UTC
"Yes, this dialog is a bit broken.  It shouldn't allow you to type in a value
at all.  You have to add the user to the "Include" list on the "Users" tab
and then you can pick the user in the drop down list."

This doesn't work. I add users to the include list and apply changes, switch to auto login, they are not in list. Exit applet and reenter, still not in auto login list.
Comment 4 Brian Cameron 2006-03-21 00:27:29 UTC
It works for me.  So when you startup gdmsetup you see the users in the "Include" list on the "Users" tab, but they do not appear in the automatic login dropdown list?  It is really annoying you have to exit and restart gdmsetup to see the
automatic login dropdown get updated.

One problem could be that if the UID's of the users you are adding to the Include list are less than MinimalUID, then they won't show up in the automatic login dropdown.  Does changing MinimalUID to 0 make a difference?  Note you have to do this by hand-editing the GDM configuration file, since the gdmsetup gui doesn't let you set MinimalUID.

Aside from that I can't imagine why it works for me and not for you.
Comment 5 Jon Smirl 2006-03-21 00:37:50 UTC
I added root, which is below the MinimalUID (since I didn't know there was a minimum UID restriction).

When I checked include all users from passwd, I didn't think it was working. But if you exit the applet and restart it, the accounts will be in the list.

The simple fix for this is to default including all users from passwd to on.

The way this is right now it is very unintuitive.
Comment 6 Brian Cameron 2006-07-10 23:05:30 UTC
Two bugs have been filed for both issues:

#343206 - no error when uid is below MinimalUID
#347101 - autologin user ignored when typed from keyboard

Closing this bug as a duplicate of 347101.

*** This bug has been marked as a duplicate of 347101 ***