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

Re: Настройка автовхода в ligthdm



Hi,

On Tue, Jan 24, 2012 at 09:45:07PM +0400, Сергей Москвичёв wrote:
> в /etc/pam.d/lightdm ничего не правлю, просто привожу что он из себя представляет.
> 
> #%PAM-1.0
> auth    requisite       pam_nologin.so
> auth    required        pam_env.so readenv=1
> auth    required        pam_env.so readenv=1 envfile=/etc/default/locale
> #auth    sufficient      pam_thinkfinger.so
> @include common-auth
  ^^^^^^^^^^^^^^^^^^^^
> auth    optional        pam_gnome_keyring.so
> @include common-account
> session required        pam_limits.so
> @include common-session
> session optional        pam_gnome_keyring.so auto_start
> @include common-password
> 
> Перезагружаюсь, но автовход не работает. В логе
> 
> [+0.05s] DEBUG: Starting seat
> [+0.05s] DEBUG: Starting new display for automatic login as user serega
> [+0.05s] DEBUG: Starting local X display
> [+0.05s] DEBUG: Could not run plymouth --ping: Failed to execute child process "plymouth" (No such file or directory)
> [+0.05s] DEBUG: Using VT 7
> [+0.05s] DEBUG: Activating VT 7
> [+0.05s] DEBUG: Logging to /var/log/lightdm/x-0.log
> [+0.05s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
> [+0.05s] DEBUG: Launching X Server
> [+0.05s] DEBUG: Launching process 2072: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
> [+0.05s] DEBUG: Waiting for ready signal from X server :0
> [+0.05s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
> [+0.05s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
> [+7.18s] DEBUG: Got signal 10 from process 2072
> [+7.18s] DEBUG: Got signal from X server :0
> [+7.18s] DEBUG: Connecting to XServer :0
> [+7.19s] DEBUG: Automatically logging in user serega
> [+7.48s] DEBUG: pam_start("lightdm-autologin", "serega") -> (0xb7a72ef8, 0)
> [+7.48s] DEBUG: Aborting automatic login as PAM requests input
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Трогать PAM без прочтения документации я бы не советовал. Поэтому: в
качестве домашнего задания прочесть хотя бы man pam.conf и man
pam_unix, и попытаться понять, с какой целью подчеркнуты две строчки выше.

Для нетерпеливых: в блогопосте по ссылке от OP есть и решение.

> [+7.50s] DEBUG: pam_authenticate(0xb7a72ef8, 0) -> 7 (Authentication failure)
> [+7.50s] DEBUG: Autologin failed authentication
> 
> ЧЯДНТ?
> 
> -- 
> С уважением, Сергей Москвичёв.

-- 
Stanislav


Reply to: