Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4949  / 2 Years ago, tue, august 16, 2022, 7:40:33

Command (in terminal):
leafpad



Result: Leafpad without root rights working fine.



What did I do to cause the error? Maybe I accidentally run



sudo leafpad


Now I am having problems... Neither kdesudo nor gksu are functional.



Command:



kdesudo leafpad


Error:



kdesudo(2831) KDESu::KDESuPrivate::KCookie::getXCookie: No X authentication info set for display  ":0" 

No protocol specified
No protocol specified
leafpad: Cannot open display:


Command:



gksu leafpad


Error:



Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files


What must I do to fix the error?


More From » sudo

 Answers
7

Run this command in the Konsole/Terminal:



sudo rm ~/.Xauthority /root/.Xauthority


That should fix the problem, as new .Xauthority files will be created as needed.



In the future, when running graphical apps as root, you can avoid creating this and other problems by using a graphical frontend like kdesudo (or gksu/gksudo) rather than invoking sudo directly.


[#36647] Thursday, August 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
otputler

Total Points: 53
Total Questions: 105
Total Answers: 93

Location: Zimbabwe
Member since Wed, Nov 9, 2022
2 Years ago
otputler questions
Tue, Aug 23, 22, 14:36, 2 Years ago
Fri, Jul 23, 21, 11:57, 3 Years ago
Sun, Feb 12, 23, 18:37, 1 Year ago
;