如果用户名只有数字,则无法加载 GUI。通过 ssh 可以登录,也可以通过 TTY 登录,但不能通过 GUI 登录。
系统信息如下。
# finger 123
Login: 123 Name:
Directory: /home/123 Shell: /bin/bash
On since Fri Jul 10 10:01 (-03) on pts/0 from 10.0.0.30
4 seconds idle
(messages off)
No mail.
No Plan.
身份验证日志输出
# tail -f /var/log/syslog
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (--) Log file renamed from "/var/log/Xorg.pid-12907.log" to "/var/log/Xorg.0.log"
Jul 10 10:25:37 bnth04 kernel: [70746.971349] rfkill: input handler enabled
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: X.Org X Server 1.20.8
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: X Protocol Version 11, Revision 0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: Build Operating System: Linux 4.4.0-177-generic x86_64 Ubuntu
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: Current Operating System: Linux bnth04 5.4.0-33-generic #37-Ubuntu SMP Thu May 21 12:53:59 UTC 2020 x86_64
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.0-33-generic root=UUID=1639c49d-fb40-4347-b19e-741b0b29a749 ro quiet splash vt.handoff=7
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: Build Date: 06 April 2020 09:39:29AM
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: xorg-server 2:1.20.8-2ubuntu2 (For technical support please see http://www.ubuntu.com/support)
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: Current version of pixman: 0.38.4Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Entry deleted from font path.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Entry deleted from font path.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Entry deleted from font path.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Entry deleted from font path.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Entry deleted from font path.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (==) FontPath set to:
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011/usr/share/fonts/X11/misc,
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011/usr/share/fonts/X11/Type1,
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011built-ins
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (==) ModulePath set to "/usr/lib/xorg/modules"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) The server relies on udev to provide the list of input devices.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loader magic: 0x55a8bb04f020
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module ABI versions:
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011X.Org ANSI C Emulation: 0.4
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011X.Org Video Driver: 24.1
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011X.Org XInput driver : 24.1
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011X.Org Server Extension : 10.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (++) using VT number 3
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (EE) systemd-logind: failed to get session: PID 12907 does not belong to any known session
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) LoadModule: "glx"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module glx: vendor="X.Org Foundation"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011compiled for 1.20.8, module version = 1.0.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011ABI class: X.Org Server Extension, version 10.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) LoadModule: "qxl"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading /usr/lib/xorg/modules/drivers/qxl_drv.so
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module qxl: vendor="X.Org Foundation"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011compiled for 1.20.7, module version = 0.1.5
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Module class: X.Org Video Driver
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011ABI class: X.Org Video Driver, version 24.1
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) LoadModule: "fbdev"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module fbdev: vendor="X.Org Foundation"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011compiled for 1.20.1, module version = 0.5.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Module class: X.Org Video Driver
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011ABI class: X.Org Video Driver, version 24.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) LoadModule: "vesa"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module vesa: vendor="X.Org Foundation"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011compiled for 1.20.4, module version = 2.4.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011Module class: X.Org Video Driver
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011ABI class: X.Org Video Driver, version 24.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl: Driver for QXL virtual graphics: QXL 1
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) modesetting: Driver for Modesetting Kernel Drivers: kms
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) FBDEV: driver for framebuffer: fbdev
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) VESA: driver for VESA chipsets: vesa
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) [KMS] Kernel modesetting enabled.
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (WW) Falling back to old probe method for modesetting
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (WW) Falling back to old probe method for fbdev
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading sub module "fbdevhw"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) LoadModule: "fbdevhw"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module fbdevhw: vendor="X.Org Foundation"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011compiled for 1.20.8, module version = 0.0.2
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011ABI class: X.Org Video Driver, version 24.1
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Creating default Display subsection in Screen section
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011"Default Screen Section" for depth/fbbpp 24/32
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Deferred Frames: Disabled
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Offscreen Surfaces: Enabled
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Image Cache: Enabled
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Fallback Cache: Enabled
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (==) qxl(0): DPI set to (96, 96)
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading sub module "fb"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) LoadModule: "fb"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading /usr/lib/xorg/modules/libfb.so
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module fb: vendor="X.Org Foundation"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011compiled for 1.20.8, module version = 1.0.0
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: #011ABI class: X.Org ANSI C Emulation, version 0.4
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Loading sub module "ramdac"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) LoadModule: "ramdac"
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Module "ramdac" already built-in
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Output Virtual-1 has no monitor section
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): EDID for output Virtual-1
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Printing probed modes for output Virtual-1
Jul 10 10:25:37 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) qxl(0): Modeline "1024x675"x59.9 55.20 1024 1072 1168 1312 675 678 688 702 -hsync +vsync (42.1 kHz P)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Using input driver 'libinput' for 'Power Button'
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Power Button: always reports core events
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "Device" "/dev/input/event0"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "_source" "server/udev"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event0 - Power Button: is tagged by udev as: Keyboard
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event0 - Power Button: device is a keyboard
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event0 - Power Button: device removed
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0/event0"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "xkb_model" "pc105"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "xkb_layout" "br"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event0 - Power Button: is tagged by udev as: Keyboard
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event0 - Power Button: device is a keyboard
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event1)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) AT Translated Set 2 keyboard: Applying InputClass "libinput keyboard catchall"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Using input driver 'libinput' for 'AT Translated Set 2 keyboard'
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) AT Translated Set 2 keyboard: always reports core events
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "Device" "/dev/input/event1"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "_source" "server/udev"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input1/event1"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 7)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "xkb_model" "pc105"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "xkb_layout" "br"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event1 - AT Translated Set 2 keyboard: is tagged by udev as: Keyboard
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event1 - AT Translated Set 2 keyboard: device is a keyboard
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event3)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) VirtualPS/2 VMware VMMouse: Applying InputClass "libinput pointer catchall"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Using input driver 'libinput' for 'VirtualPS/2 VMware VMMouse'
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) VirtualPS/2 VMware VMMouse: always reports core events
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "Device" "/dev/input/event3"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "_source" "server/udev"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input3/event3"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) XINPUT: Adding extended input device "VirtualPS/2 VMware VMMouse" (type: MOUSE, id 8)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "AccelerationScheme" "none"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event3 - VirtualPS/2 VMware VMMouse: is tagged by udev as: Mouse
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event3 - VirtualPS/2 VMware VMMouse: device is a pointer
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse1)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) No input driver specified, ignoring this device.
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) This device may have been added with another device file.
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/event2)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) VirtualPS/2 VMware VMMouse: Applying InputClass "libinput pointer catchall"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Using input driver 'libinput' for 'VirtualPS/2 VMware VMMouse'
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) VirtualPS/2 VMware VMMouse: always reports core events
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "Device" "/dev/input/event2"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "_source" "server/udev"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input4/event2"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) XINPUT: Adding extended input device "VirtualPS/2 VMware VMMouse" (type: MOUSE, id 9)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) Option "AccelerationScheme" "none"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (**) VirtualPS/2 VMware VMMouse: (accel) selected scheme none/0
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event2 - VirtualPS/2 VMware VMMouse: is tagged by udev as: Mouse
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event2 - VirtualPS/2 VMware VMMouse: device is a pointer
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) config/udev: Adding input device VirtualPS/2 VMware VMMouse (/dev/input/mouse0)
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) No input driver specified, ignoring this device.
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) This device may have been added with another device file.
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12918]: dbus-daemon[12918]: [session uid=1003 pid=12918] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12905]: Unable to register display with display manager
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event0 - Power Button: device removed
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event1 - AT Translated Set 2 keyboard: device removed
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event3 - VirtualPS/2 VMware VMMouse: device removed
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) event2 - VirtualPS/2 VMware VMMouse: device removed
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) UnloadModule: "libinput"
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: message repeated 3 times: [ (II) UnloadModule: "libinput"]
Jul 10 10:25:38 bnth04 /usr/lib/gdm3/gdm-x-session[12907]: (II) Server terminated successfully (0). Closing log file.
Jul 10 10:25:38 bnth04 gdm3: GdmDisplay: Session never registered, failing
Jul 10 10:25:38 bnth04 gsd-color[12077]: unable to get EDID for xrandr-Virtual-1: unable to get EDID for output
Jul 10 10:25:38 bnth04 gnome-shell[11996]: Could not open device /dev/input/event4: GDBus.Error:org.freedesktop.login1.DeviceIsTaken: Device already taken
Jul 10 10:25:38 bnth04 gsd-color[12077]: unable to get EDID for xrandr-Virtual-1: unable to get EDID for output
Jul 10 10:25:38 bnth04 gnome-shell[12927]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jul 10 10:25:38 bnth04 gnome-shell[12927]: > Warning: Unsupported maximum keycode 569, clipping.
Jul 10 10:25:38 bnth04 gnome-shell[12927]: > X11 cannot support keycodes above 255.
Jul 10 10:25:38 bnth04 gnome-shell[12927]: > Internal error: Could not resolve keysym Invalid
Jul 10 10:25:38 bnth04 gnome-shell[12927]: Errors from xkbcomp are not fatal to the X server
答案1
这正是预期的结果。
Linux 不允许使用以数字开头的用户名。不仅仅是 Ubuntu。它会破坏诸如 之类的命令chmod
。
GNU:
2.6 chown、chgrp、chroot、id:消除用户名和 ID 歧义
由于这些命令的用户和组参数可以指定为名称或数字 ID,因此存在明显的歧义。如果用户或组名是一串数字怎么办?1 命令应该将其解释为用户名还是 ID?POSIX 要求这些命令首先尝试将指定的字符串解析为名称,并且只有失败一次,才尝试将其解释为 ID。当您想要指定一个数字 ID(例如 42)时,这很麻烦,并且即使在“42”是映射到其他用户 ID(例如 1000)的用户名的异常情况下,它也必须工作。只需调用 chown 42 F,就会将 Fs 所有者 ID 设置为 1000 — 这不是您想要的。
用于用户名的正则表达式是(除非您使用带有--force-badname
选项的 adduser):
^[a-z][-a-z0-9]*$
所以它需要以 [az] 开头。正则表达式来自man 5 adduser.conf
答案2
对于可能遇到此问题的其他人,将 gdm3 换成 lightdm,并在“/etc/pam.d/common-session”中添加模块“pam_mkhomedir.so”即可登录。