su -l 未正确重置 XDG_RUNTIME_DIR 环境变量的Bug

Unable to make or open a FIFO for universal variables with path '/run/user/1000/fishd.xxxxxxx.notifier': Permission denied

https://bugzilla.redhat.com/show_bug.cgi?id=753882#c17

会影响fish shell,

vim /etc/pam.d/su

include common-session

之前加上

session required pam_loginuid.so

即可

su -l does not set $XDG_RUNTIME_DIR for the new user

https://lists.opensuse.org/opensuse-bugs/2012-02/msg02070.html

Author Info :
  • From:su -l 未正确重置 XDG_RUNTIME_DIR 环境变量的Bug
  • URL:https://blog.ihipop.com/2016/05/4866.html
  • Please Reserve This Link,Thanks!
  • 发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注