Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am on ubuntu 12.10.

Every time that I try to open gedit on root this appears:

(gedit:3254): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported

** (gedit:3254): WARNING **: Could not connect to session bus
share|improve this question
Is it just a warning, or a fatal error preventing you from running gedit? (regardless, gksudo is the way to go) – IQAndreas Jul 14 '13 at 12:47
up vote 5 down vote accepted

Use gksudo for this:

gksudo gedit

That should do the trick.

share|improve this answer
bash: gksudo: command not found – Tomáš Zato Mar 24 '15 at 16:11

I had the same issue. Resolved with the following command

sudo gedit & 
share|improve this answer
Note that the messages shown in the Terminal are not really a problem, and all running gedit with & after it does is to suppress those messages. The underlying (extremely minor) issue that produces the messages is not fixed by doing that. @guntbert sudo gedit might make gedit not work when run as the non-root user. We we've discussed, I think it's not very likely to lock out local GUI logins, but I am not 100% sure. It might or might not be the practical cause of such problems. – Eliah Kagan Jan 11 '14 at 11:09
-1 Ugh, detaching sudo from the shell is a terrible idea. – David Foerster Feb 22 '15 at 12:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.