用户运行时目录@0 错误

用户运行时目录@0 错误

systemd 服务 user-runtime-dir@0 Journalctl 错误

sudo journalctl -xe -u user-runtime-dir@0

-- Unit [email protected] has begun shutting down.
Jul 14 08:00:12 systemd-user-runtime-dir[2660105]: Failed to remove runtime directory /run/user/0 (after unmounting): Permission denied
Jul 14 08:00:12 systemd[1]: [email protected]: Control process exited, code=exited status=1
Jul 14 08:00:12 systemd[1]: [email protected]: Failed with result 'exit-code'.
-- Subject: Unit failed

但 /run/user/0 的所有权设置正确,如下所示

$ sudo ls -ls /run/user/0
total 0
0 srw-rw-rw-. 1 root root  0 Jul 14 08:00 bus
0 drwx------. 2 root root 40 Jun 23 02:50 gnupg
0 srw-rw-rw-. 1 root root  0 Jul 14 08:00 pipewire-0
0 drwxr-xr-x. 2 root root 80 Jul 14 08:00 systemd

那么为什么会出现错误“无法删除运行时目录/run/user/0(卸载后):权限被拒绝”?任何提示都非常受欢迎!

相关内容