Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I read somewhere that people should use gksudo for applications that use the Gtk GUI instead of sudo? What's the reasoning for this?

share|improve this question

marked as duplicate by Radu Rădeanu Jul 16 at 16:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 10 down vote accepted

Source.

  1. There are other times, though, when side effects can be as mild as Firefox extensions not sticking or as extreme as as not being able to log in any more because the permissions on your .ICEauthority changed.

These errors occur because sometimes when sudo launches an application, it launches with root privileges but uses the user's configuration file.

For example, if you launch Firefox with the command

 gksudo firefox

it uses root's Firefox configuration file.

But if you launch Firefox with the command

 sudo firefox

it runs with root privileges but uses the user's configuration file.

share|improve this answer

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