對運行時的終端錯誤輸出感到好奇sudo Kate
。我在一個論壇上讀到,指導我使用開啟記事本gksudo
。意識到這還沒有安裝,我只是繼續嘗試打開我的記事本編輯器sudo
並編輯該.conf
文件(這有效,我的意思是它保存了新.conf
文件而沒有根訪問錯誤,但給我留下了“未知錯誤行”)。我sudo
在 Raspberry PI 上運行以使用nano
.
是什麼導致了錯誤行?
skratch@Slick:~$ sudo kate
[sudo] password for skratch:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-skratch" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-skratch" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-skratch" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-skratch" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Error: "/tmp/ksocket-skratch" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-skratch" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-skratch" is owned by uid 1000 instead of uid 0.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-skratch" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-skratch" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-skratch" is owned by uid 1000 instead of uid 0.
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-skratch" is owned by uid 1000 instead of uid 0.
QObject::connect: Cannot connect (null)::resourceScoreUpdated(QString, QString, QString, double) to NepomukPlugin::resourceScoreUpdated(QString, QString, QString, double)
QObject::connect: Cannot connect (null)::recentStatsDeleted(QString, int, QString) to NepomukPlugin::deleteRecentStats(QString, int, QString)
QObject::connect: Cannot connect (null)::earlierStatsDeleted(QString, int) to NepomukPlugin::deleteEarlierStats(QString, int)
QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.8'
Error: "/tmp/kde-skratch" is owned by uid 1000 instead of uid 0.
答案1
Uid 1000 就是你。 Uid 0 是 root。掠奪 的輸出ls -l /var/tmp
。有些資料夾是您擁有的,有些是 root 擁有的。如果您不是文件的所有者並且權限是drwx------
,則無法打開它,就這麼簡單。當您使用 root 權限呼叫 kate 時,kate 需要存取您擁有的資料夾,但程式是從 root 的角度執行的。因此出現錯誤