无法以用户身份登录

无法以用户身份登录

一切都以 root 身份运行。我可以启动x,并进入iceWM。我将使用 i3,但如果我以“其他”身份登录然后写入“root”,则通过 lightdm 也可以使用。

使用 TTY 登录也可以,但只能以 root 身份登录。当我尝试以用户身份登录时,它挂起一会儿,然后又回到之前的状态。

当我在 TTY 中以 root 身份登录并执行 操作时su mats,我得到su: failed to execute /usr/bin/fish: No such file or directoryThere is no file there, the directory /usr/binis there.

#journalctl -f这是尝试以普通用户身份通过​​ lightdm 打开 i3的结果。

nux-v80v:~ # journalctl -f
-- Logs begin at Wed 2019-01-16 15:40:46 CET. --
Jan 16 15:44:27 linux-v80v dbus-daemon[2587]: [session uid=469 pid=2587] Successfully activated service 'org.a11y.Bus'
Jan 16 15:44:27 linux-v80v systemd[2571]: Started Accessibility services bus.
Jan 16 15:44:27 linux-v80v at-spi-bus-launcher[2588]: dbus-daemon[2593]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=469 pid=2577 comm="/usr/sbin/lightdm-gtk-greeter ")
Jan 16 15:44:27 linux-v80v dbus-daemon[2587]: [session uid=469 pid=2587] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.3' (uid=469 pid=2577 comm="/usr/sbin/lightdm-gtk-greeter ")
Jan 16 15:44:27 linux-v80v at-spi-bus-launcher[2588]: dbus-daemon[2593]: Successfully activated service 'org.a11y.atspi.Registry'
Jan 16 15:44:27 linux-v80v at-spi-bus-launcher[2588]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jan 16 15:44:27 linux-v80v systemd[2571]: Starting Virtual filesystem service...
Jan 16 15:44:27 linux-v80v chronyd[1535]: Selected source 185.175.56.126
Jan 16 15:44:27 linux-v80v dbus-daemon[2587]: [session uid=469 pid=2587] Successfully activated service 'org.gtk.vfs.Daemon'
Jan 16 15:44:27 linux-v80v systemd[2571]: Started Virtual filesystem service.
Jan 16 15:44:51 linux-v80v systemd[1]: session-5.scope: Killing process 2561 (lightdm) with signal SIGTERM.
Jan 16 15:44:51 linux-v80v systemd[1]: session-5.scope: Killing process 2577 (lightdm-gtk-gre) with signal SIGTERM.
Jan 16 15:44:51 linux-v80v systemd[1]: Stopping Session 5 of user lightdm.
Jan 16 15:44:51 linux-v80v lightdm[2561]: pam_unix(lightdm-greeter:session): session closed for user lightdm
Jan 16 15:44:51 linux-v80v systemd[1]: Stopped Session 5 of user lightdm.
Jan 16 15:44:51 linux-v80v systemd-logind[1532]: Removed session 5.
Jan 16 15:44:51 linux-v80v systemd[1]: Stopping User Manager for UID 469...
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopping Accessibility services bus...
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopping D-Bus User Message Bus...
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped target Default.
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopping Virtual filesystem service...
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped D-Bus User Message Bus.
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped Accessibility services bus.
Jan 16 15:44:51 linux-v80v lightdm[1995]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Jan 16 15:44:51 linux-v80v systemd[1]: Created slice User Slice of mats.
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped Virtual filesystem service.
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped target Basic System.
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped target Timers.
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped target Sockets.
Jan 16 15:44:51 linux-v80v systemd[2571]: Closed D-Bus User Message Bus Socket.
Jan 16 15:44:51 linux-v80v systemd[2571]: Stopped target Paths.
Jan 16 15:44:51 linux-v80v systemd[2571]: Reached target Shutdown.
Jan 16 15:44:51 linux-v80v systemd[2571]: Starting Exit the Session...
Jan 16 15:44:51 linux-v80v systemd[1]: Starting User Manager for UID 1000...
Jan 16 15:44:51 linux-v80v systemd-logind[1532]: New session 6 of user mats.
Jan 16 15:44:51 linux-v80v systemd[2571]: Received SIGRTMIN+24 from PID 2636 (kill).
Jan 16 15:44:51 linux-v80v systemd[1]: Started Session 6 of user mats.
Jan 16 15:44:51 linux-v80v systemd[2635]: pam_unix(systemd-user:session): session opened for user mats by (uid=0)
Jan 16 15:44:51 linux-v80v systemd[2635]: Reached target Paths.
Jan 16 15:44:51 linux-v80v systemd[2635]: Reached target Timers.
Jan 16 15:44:51 linux-v80v systemd[2572]: pam_unix(systemd-user:session): session closed for user lightdm
Jan 16 15:44:51 linux-v80v systemd[2635]: Starting D-Bus User Message Bus Socket.
Jan 16 15:44:51 linux-v80v systemd[1]: Stopped User Manager for UID 469.
Jan 16 15:44:51 linux-v80v systemd[1]: Removed slice User Slice of lightdm.
Jan 16 15:44:51 linux-v80v systemd[2635]: Listening on D-Bus User Message Bus Socket.
Jan 16 15:44:51 linux-v80v systemd[2635]: Reached target Sockets.
Jan 16 15:44:51 linux-v80v systemd[2635]: Reached target Basic System.
Jan 16 15:44:51 linux-v80v systemd[2635]: Reached target Default.
Jan 16 15:44:51 linux-v80v systemd[2635]: Startup finished in 26ms.
Jan 16 15:44:51 linux-v80v lightdm[2619]: pam_unix(lightdm:session): session opened for user mats by (uid=0)
Jan 16 15:44:51 linux-v80v systemd[1]: Started User Manager for UID 1000.
Jan 16 15:44:51 linux-v80v systemd[2635]: Started D-Bus User Message Bus.
v
y
Jan 16 15:48:12 linux-v80v lightdm[2619]: pam_unix(lightdm:session): session closed for user mats
Jan 16 15:48:12 linux-v80v systemd-logind[1532]: Removed session 6.
Jan 16 15:48:12 linux-v80v systemd[1]: Stopping User Manager for UID 1000...
Jan 16 15:48:12 linux-v80v systemd[2635]: Stopping D-Bus User Message Bus...
Jan 16 15:48:12 linux-v80v systemd[2635]: Stopped target Default.
Jan 16 15:48:12 linux-v80v systemd[2635]: Stopped D-Bus User Message Bus.
Jan 16 15:48:12 linux-v80v systemd[2635]: Stopped target Basic System.
Jan 16 15:48:12 linux-v80v systemd[2635]: Stopped target Timers.
Jan 16 15:48:12 linux-v80v systemd[2635]: Stopped target Sockets.
Jan 16 15:48:12 linux-v80v systemd[2635]: Stopped target Paths.
Jan 16 15:48:12 linux-v80v systemd[2635]: Closed D-Bus User Message Bus Socket.
Jan 16 15:48:12 linux-v80v systemd[2635]: Reached target Shutdown.
Jan 16 15:48:12 linux-v80v systemd[2635]: Starting Exit the Session...
Jan 16 15:48:12 linux-v80v systemd[2635]: Received SIGRTMIN+24 from PID 2734 (kill).
Jan 16 15:48:12 linux-v80v systemd[2637]: pam_unix(systemd-user:session): session closed for user mats
Jan 16 15:48:12 linux-v80v systemd[1]: Stopped User Manager for UID 1000.
Jan 16 15:48:12 linux-v80v systemd[1]: Removed slice User Slice of mats.
Jan 16 15:48:13 linux-v80v lightdm[1995]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Jan 16 15:48:13 linux-v80v systemd[1]: Created slice User Slice of lightdm.
Jan 16 15:48:13 linux-v80v systemd[1]: Starting User Manager for UID 469...
Jan 16 15:48:13 linux-v80v systemd-logind[1532]: New session 7 of user lightdm.
Jan 16 15:48:13 linux-v80v systemd[1]: Started Session 7 of user lightdm.
Jan 16 15:48:13 linux-v80v systemd[2758]: pam_unix(systemd-user:session): session opened for user lightdm by (uid=0)
Jan 16 15:48:13 linux-v80v systemd[2758]: Reached target Paths.
Jan 16 15:48:13 linux-v80v systemd[2758]: Reached target Timers.
Jan 16 15:48:13 linux-v80v systemd[2758]: Starting D-Bus User Message Bus Socket.
Jan 16 15:48:13 linux-v80v systemd[2758]: Listening on D-Bus User Message Bus Socket.
Jan 16 15:48:13 linux-v80v systemd[2758]: Reached target Sockets.
Jan 16 15:48:13 linux-v80v systemd[2758]: Reached target Basic System.
Jan 16 15:48:13 linux-v80v systemd[2758]: Reached target Default.
Jan 16 15:48:13 linux-v80v systemd[2758]: Startup finished in 23ms.
Jan 16 15:48:13 linux-v80v systemd[1]: Started User Manager for UID 469.
Jan 16 15:48:13 linux-v80v lightdm[2748]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
Jan 16 15:48:13 linux-v80v systemd[2758]: Started D-Bus User Message Bus.
Jan 16 15:48:13 linux-v80v dbus-daemon[2774]: [session uid=469 pid=2774] Activating systemd to hand-off: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.0' (uid=469 pid=2764 comm="/usr/sbin/lightdm-gtk-greeter ")
Jan 16 15:48:13 linux-v80v dbus-daemon[2774]: [session uid=469 pid=2774] Successfully activated service 'org.freedesktop.systemd1'
Jan 16 15:48:13 linux-v80v systemd[2758]: Starting Accessibility services bus...
Jan 16 15:48:13 linux-v80v dbus-daemon[2774]: [session uid=469 pid=2774] Successfully activated service 'org.a11y.Bus'
Jan 16 15:48:13 linux-v80v systemd[2758]: Started Accessibility services bus.
Jan 16 15:48:13 linux-v80v at-spi-bus-launcher[2775]: dbus-daemon[2780]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=469 pid=2764 comm="/usr/sbin/lightdm-gtk-greeter ")
Jan 16 15:48:13 linux-v80v dbus-daemon[2774]: [session uid=469 pid=2774] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.3' (uid=469 pid=2764 comm="/usr/sbin/lightdm-gtk-greeter ")
Jan 16 15:48:13 linux-v80v systemd[2758]: Starting Virtual filesystem service...
Jan 16 15:48:13 linux-v80v at-spi-bus-launcher[2775]: dbus-daemon[2780]: Successfully activated service 'org.a11y.atspi.Registry'
Jan 16 15:48:13 linux-v80v at-spi-bus-launcher[2775]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jan 16 15:48:13 linux-v80v dbus-daemon[2774]: [session uid=469 pid=2774] Successfully activated service 'org.gtk.vfs.Daemon'
Jan 16 15:48:13 linux-v80v systemd[2758]: Started Virtual filesystem service

答案1

正如@Mark 指出的,问题是它找不到鱼壳。

这只是指定 shell 路径的问题

我不得不重新安装外壳。 (就好像没有安装一样,我觉得对于 openSUSE 这样的东西有点奇怪。)

zypper install fish

如果这不起作用,您还可以指定 shell 的位置。 (确保已安装后。)

输入chsh *username*TTY(登录后)并输入usr/bin/fish。 (或者你正在使用的 shell 的路径,我使用 zsh,所以就是/usr/bin/zsh。)

相关内容