關於 journal: unable to create file ‘/run/user/1000/dconf/user’: Permission denied 問題

這幾天公司上的測試機上突然跑一些錯誤訊息,檢查 /var/log/messages 中發現一堆 下列的這類錯誤,看來似乎是權限問題

journal: unable to create file ‘/run/user/1000/dconf/user’: Permission denied.

查了一下 Red Hat 官網,說是 GNOME 的一個 Bug, 對現用的 session 的 Workaround 是執行

# tracker daemon -k all

但要順便修改一下 下列幾個檔案中的 ‘X-GNOME-Autostart-enabled=false’ 將之改為 true重開可停止 tracker 下次重開機後再被喚起。

/etc/xdg/autostart/tracker-extract.desktop
/etc/xdg/autostart/tracker-miner-apps.desktop
/etc/xdg/autostart/tracker-miner-fs.desktop
/etc/xdg/autostart/tracker-miner-user-guides.desktop
/etc/xdg/autostart/tracker-store.desktop
# sed -i 's/X-GNOME-Autostart-enabled=true/X-GNOME-Autostart-enabled=false/g' /etc/xdg/autostart/*

重開後就正常了。

官方解釋如下:

Root Cause

The error message points to a problem with file permissions with the file /run/user/0/dconf/user. This is used by dconf to store lockfiles and other user-specific information, so this message being present may cause unwelcome behavior in GNOME and elsewhere. As such, ignoring it may not be a good idea.

Author: jerryw1974

learning and focus on computer science, cloud infrastructure, virtualization and information security, technical, networking,platform system and cyber-security related topic.