Re: [gdm-list] GDM autologin for 2 sessions?



bernt:

Have you tested this with the latest version of GDM (2.16.4 or 2.17)?
There were some bugs with using piped scripts with autologin that have
been fixed over the past few releases.  It's possible the version you
are using has a bug in this logic.

The original question was whether or not you can have different
autologin users on different displays.  Looking at the if-test in
daemon/slave.c, I notice autologin gets turned on with this logic.


                /* only allow timed login if display is local,
                 * it is allowed for this display (it's only allowed
* for the first local display) and if it's set up
                 * correctly */
                if ((d->attached || gdm_get_value_bool
                   (GDM_KEY_ALLOW_REMOTE_AUTOLOGIN))
                    && d->timed_login_ok &&
                    ! ve_string_empty (ParsedTimedLogin) &&
                    strcmp (ParsedTimedLogin, gdm_root_user ()) != 0 &&
                    gdm_get_value_int (GDM_KEY_TIMED_LOGIN_DELAY) > 0) {
                       do_timed_login = TRUE;
                }

I think d->attached only gets set to TRUE for the console.  But if
you set AllowRemoteAutoLogin to true, then autologin may work for
additional displays.  Not 100% sure if this is necessary.

Then you could set up a piped script that checks $DISPLAY and returns
a different user based on the $DISPLAY value.  This probably works.

I'd be interested if someone tests this.  If this works, then the GDM
docs should be updated to explain how to set this up.  If setting
AllowRemoteAutoLogin is needed for this to work, then the docs for
this key should probably be updated to explain that this is also
needed if you want autologin to work on displays other than the
console (not just remote/XDMCP displays).

Brian


Is it possible to have gdm autologin 2 users, one on each session?

No, GDM doesn't support this.  It only supports autologin on the
console.  GDM would need to be enhanced to support the sort of
behavior you suggest.

This multi-autologin was possible with gdm from the ubuntu breezy distribution.

It was possible to execute a script through the following entry:
TimedLogin=/usr/bin/getuser.groovix|
or
AutomaticLogin=/usr/bin/getuser.groovix|

But after version 2.14.10 this was no longer possible. -- Why ?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]