Friday, October 10, 2008

Run graphical programs using gksudo not sudo

Use gksudo (or kdesu from KDE) instead of sudo when you run a graphical program that requires root privileges. Although both utilities run a program with root privileges, sudo uses your configuration files, whereas gksudo uses root’s configuration files. Most of the time this difference is not important, but sometimes it is critical. Some programs will not run when you call them with sudo. Using gksudo can prevent incorrect permissions from being applied to files related to the X Window System in your home directory. In a few cases, misapplying these permissions can prevent you from logging back in. In addition, you can use gksudo in a launcher on the
desktop or on a panel.

No comments:

Post a Comment