Saída de erro do terminal RE: edição do arquivo .conf no Xbuntu [de propriedade do uid 1000 é de 0]

0

Foi curioso quanto à saída do erro do terminal de executar sudo Kate . Eu li em um fórum que me orientou a abrir meu bloco de notas usando gksudo . Percebendo que isso não tinha sido instalado, fui em frente e tentei abrir meu editor de bloco de notas com sudo e editar o arquivo .conf (que funcionou, com isso quero dizer que ele salvou o novo arquivo .conf sem erro de acesso root mas me deixou com "linhas de erros desconhecidos" ). Não tenho nenhum problema em executar sudo no meu PI de framboesa para abrir e editar arquivos de texto usando nano .

O que causou as linhas de erro e como corrigi-las se forem respondidas com facilidade?

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.
    
por Paul Randleman 30.03.2015 / 07:48

1 resposta

0

O Uid 1000 é você. Uid 0 é raiz. Pegue um saque na saída de ls -l /var/tmp . Há algumas pastas das quais você é proprietário e algumas que a raiz possui. Se você não é o proprietário de um arquivo e as permissões são drwx------ , não é possível abri-lo, simples assim. Quando você chama o kate com privilégios de root, o kate precisa acessar as pastas de sua propriedade, mas o programa foi executado do ponto de vista do root. Daí os erros

    
por Sergiy Kolodyazhnyy 30.03.2015 / 07:56