您尚未登录。

#1 2020-09-13 18:10:16

Mirasire
会员
注册时间: 2020-09-13
帖子: 1

autologin设置失效。lightdm+xfce4

在安装完lightdmh后常识开启自动登录功能,已经将所需用户加入autologin组内,但是在重启系统后,还是需要密码登录。

这是我的lightdm.conf

  1                                                                                    
  2 [LightDM]                                                                          
  3 #log-directory=/var/log/lightdm                                                    
  4 run-directory=/run/lightdm                                                         
  5                                                                                    
  6 [Seat:*]                                                                           
  7 pam-service=lightdm                                                                
  8 pam-autologin-service=lightdm-autologin                                            
  9 greeter-session=lightdm-gtk-greeter                                                
 10 session-wrapper=/etc/lightdm/Xsession                                              
 11 autologin-user=mirasire                                                            
 12 autologin-user-timeout=0                                                           
 13                                                                                    
 14 [XDMCPServer]                                                                      
 15                                                                                    
 16 [VNCServer] 

这是lightdm.log

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.30.0, UID=0 PID=494
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.60s] DEBUG: Monitoring logind for seats
[+0.60s] DEBUG: New seat added from logind: seat0
[+0.60s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.60s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.60s] DEBUG: Seat seat0: Starting
[+0.60s] DEBUG: Seat seat0: Creating user session
[+0.68s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.68s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.71s] DEBUG: Seat seat0: Creating display server of type x
[+0.71s] DEBUG: posix_spawn avoided (fd close requested) 
[+0.71s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.71s] DEBUG: Using VT 7
[+0.71s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.71s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.71s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+0.71s] DEBUG: XServer 0: Launching X Server
[+0.71s] DEBUG: Launching process 707: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.71s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.71s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.71s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.71s] DEBUG: posix_spawn avoided (automatic reaping requested) (fd close requested) 
[+1.44s] DEBUG: Got signal 10 from process 707
[+1.44s] DEBUG: XServer 0: Got signal from X server :0
[+1.44s] DEBUG: XServer 0: Connecting to XServer :0
[+1.44s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+1.44s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.44s] DEBUG: Session pid=926: Started with service 'lightdm-autologin', username 'mirasire'
[+1.46s] DEBUG: Session pid=926: Authentication complete with return value 0: Success
[+1.46s] DEBUG: Seat seat0: Session authenticated, running command
[+1.46s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
[+1.46s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+1.46s] DEBUG: Session pid=926: Running command /etc/lightdm/Xsession startxfce4
[+1.46s] DEBUG: Creating shared data directory /var/lib/lightdm-data/mirasire
[+1.46s] DEBUG: Session pid=926: Logging to .xsession-errors
[+1.58s] DEBUG: Activating VT 7
[+1.58s] DEBUG: Activating login1 session 1
[+1.58s] DEBUG: Seat seat0 changes active session to 1
[+1.58s] DEBUG: Session 1 is already active
[+2.12s] DEBUG: Session pid=926: Exited with return value 1
[+2.12s] DEBUG: Seat seat0: Session stopped
[+2.12s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+2.12s] DEBUG: Sending signal 15 to process 707
[+2.12s] DEBUG: Seat seat0 changes active session to 
[+3.33s] DEBUG: Process 707 terminated with signal 6
[+3.33s] DEBUG: XServer 0: X server stopped
[+3.33s] DEBUG: Releasing VT 7
[+3.33s] DEBUG: XServer 0: Removing X server authority /run/lightdm/root/:0
[+3.33s] DEBUG: Seat seat0: Display server stopped
[+3.33s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+3.33s] DEBUG: Seat seat0: Creating greeter session
[+3.33s] DEBUG: Seat seat0: Creating display server of type x
[+3.33s] DEBUG: Using VT 7
[+3.33s] DEBUG: Seat seat0: Starting local X display on VT 7
[+3.33s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+3.33s] DEBUG: XServer 0: Writing X server authority to /run/lightdm/root/:0
[+3.33s] DEBUG: XServer 0: Launching X Server
[+3.33s] DEBUG: Launching process 962: /usr/bin/X :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+3.33s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+4.71s] DEBUG: Got signal 10 from process 962
[+4.71s] DEBUG: XServer 0: Got signal from X server :0
[+4.71s] DEBUG: XServer 0: Connecting to XServer :0
[+4.71s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+4.71s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+4.71s] DEBUG: Session pid=983: Started with service 'lightdm-greeter', username 'lightdm'
[+4.73s] DEBUG: Session pid=983: Authentication complete with return value 0: Success
[+4.73s] DEBUG: Seat seat0: Session authenticated, running command
[+4.73s] DEBUG: Session pid=983: Running command /usr/bin/lightdm-gtk-greeter
[+4.73s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+4.73s] DEBUG: Session pid=983: Logging to /var/log/lightdm/seat0-greeter.log
[+4.83s] DEBUG: Activating VT 7
[+4.83s] DEBUG: Activating login1 session c1
[+4.83s] DEBUG: Seat seat0 changes active session to c1
[+4.83s] DEBUG: Session c1 is already active
[+5.03s] DEBUG: Greeter connected version=1.30.0 api=1 resettable=false
[+5.31s] DEBUG: Greeter start authentication for mirasire
[+5.31s] DEBUG: Session pid=1016: Started with service 'lightdm', username 'mirasire'
[+5.32s] DEBUG: Session pid=1016: Got 1 message(s) from PAM
[+5.32s] DEBUG: Prompt greeter with 1 message(s)
[+9.50s] DEBUG: Continue authentication
[+11.91s] DEBUG: Session pid=1016: Authentication complete with return value 6: Permission denied
[+11.91s] DEBUG: Authenticate result for user mirasire: Permission denied
[+11.92s] DEBUG: Session pid=1016: Exited with return value 1
[+11.92s] DEBUG: Seat seat0: Session stopped
[+11.92s] DEBUG: Greeter start authentication for mirasire
[+11.92s] DEBUG: Session pid=1039: Started with service 'lightdm', username 'mirasire'
[+11.93s] DEBUG: Session pid=1039: Got 1 message(s) from PAM
[+11.93s] DEBUG: Prompt greeter with 1 message(s)
[+24.04s] DEBUG: Continue authentication
[+24.06s] DEBUG: Session pid=1039: Authentication complete with return value 0: Success
[+24.06s] DEBUG: Authenticate result for user mirasire: Success
[+24.06s] DEBUG: User mirasire authorized
[+24.08s] DEBUG: Greeter requests session xfce
[+24.08s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
[+24.08s] DEBUG: Terminating login1 session c1
[+24.08s] DEBUG: Session pid=983: Sending SIGTERM
[+24.10s] DEBUG: Greeter closed communication channel
[+24.10s] DEBUG: Session pid=983: Exited with return value 0
[+24.10s] DEBUG: Seat seat0: Session stopped
[+24.10s] DEBUG: Seat seat0: Greeter stopped, running session
[+24.10s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
[+24.10s] DEBUG: posix_spawn avoided (fd close requested) (child_setup specified) 
[+24.10s] DEBUG: Session pid=1039: Running command /etc/lightdm/Xsession startxfce4
[+24.10s] DEBUG: Creating shared data directory /var/lib/lightdm-data/mirasire
[+24.10s] DEBUG: Session pid=1039: Logging to .xsession-errors
[+24.20s] DEBUG: Activating VT 7
[+24.20s] DEBUG: Activating login1 session 4
[+24.20s] DEBUG: Seat seat0 changes active session to 
[+24.20s] DEBUG: Seat seat0 changes active session to 4
[+24.20s] DEBUG: Session 4 is already active

systemctl status lightdm.service

● lightdm.service - Light Display Manager
     Loaded: loaded (/usr/lib/systemd/system/lightdm.service; enabled; vendor preset: disabled)
     Active: active (running) since Sun 2020-09-13 18:04:57 CST; 1min 12s ago
       Docs: man:lightdm(1)
   Main PID: 494 (lightdm)
      Tasks: 15 (limit: 9387)
     Memory: 290.0M
     CGroup: /system.slice/lightdm.service
             ├─494 /usr/bin/lightdm
             └─968 /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

Warning: some journal files were not opened due to insufficient permissions.

journalctl -b -u lightdm.service

-- Logs begin at Thu 2020-09-10 21:23:20 CST, end at Sun 2020-09-13 18:08:00 CST. --
Sep 13 18:04:56 mirasire systemd[1]: Starting Light Display Manager...
Sep 13 18:04:57 mirasire systemd[1]: Started Light Display Manager.
Sep 13 18:04:58 mirasire lightdm[937]: pam_succeed_if(lightdm-autologin:auth): requirement "user ingroup autologin" was met by user "mirasire"
Sep 13 18:04:58 mirasire lightdm[937]: pam_systemd_home(lightdm-autologin:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Sep 13 18:04:58 mirasire lightdm[937]: pam_unix(lightdm-autologin:session): session opened for user mirasire(uid=1000) by (uid=0)
Sep 13 18:04:58 mirasire lightdm[937]: pam_unix(lightdm-autologin:session): session closed for user mirasire
Sep 13 18:05:01 mirasire lightdm[988]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=971) by (uid=0)
Sep 13 18:05:10 mirasire lightdm[1021]: pam_systemd_home(lightdm:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Sep 13 18:05:10 mirasire lightdm[1021]: pam_unix(lightdm:session): session opened for user mirasire(uid=1000) by (uid=0)

请问我该如何设置才能,在开机以后,自动登录Mirasire这个用户呢?

离线

#2 2020-09-14 12:05:54

silkriver
会员
注册时间: 2020-07-24
帖子: 147

Re: autologin设置失效。lightdm+xfce4

我是设置用户group,勾选autologin就可以了

离线

#3 2021-02-16 15:36:42

400wusagi
会员
注册时间: 2021-02-16
帖子: 4

Re: autologin设置失效。lightdm+xfce4

请问一下你解决了吗?
我是xfce,两个group autologin nopasswdlogin也都加了,还是没用,不知道哪里出了问题

离线

页脚