

You may notice that even though gksudo is the proper way to launch graphical applications, if you launch a gksudo application it will sometimes give you what appears to be an error. sudo for command-line applications.īut gksudo sometimes gives me an error. Why make a list that needs to be compiled and updated, that most people won't refer to, and that is completely unnecessary? Just be consistent in suggesting good practice: gksudo and kdesudo for graphical applications. If you made exceptions, you would have to give people a list of all the graphical applications that are okay to run as sudo and a list of all the graphical applications that must be run as gksudo or kdesudo. Some of the time, though, it is not fine, and is, in fact, extremely bad.
#GEDIT ETC APT SOURCES LIST PASSWORD#
If you don't use the proper command- gksudo or kdesudo, you will not be able to use the command as an icon launcher or keyboard shortcut because there will be no graphical dialogue box to enter your sudo password in.īottom line: most of the time when you use sudo for graphical applications, it's fine. Running graphical applications with sudo also has the downside of always having to be run from the terminal.

Sudo firefox it runs with root privileges but uses the user's configuration file (in this case, you can see the homepage and theme are different).Ĭhange a few settings while launched as root, and you'll see if you dig into your Firefox profile that certain files are now owned by root.Ģ. You may also want to consider donating directly to the Ubuntu project. If you've found these tutorials useful, please consider donating a small amount to one of my favorite non-profits/charities.
