Originally posted by anonprivate
View Post
Using sudo, a program is run with root's privileges, but with the user's configurations.
Using kdesudo (or gksu/gksudo in Ubuntu), it uses root's configurations, but also copies
.Xauthority to a tmp directory. This prevents files in your home directory becoming
owned by root.
Running something graphical with sudo is not a guarantee that a config file will change ownership, but makes the likelihood much greater, especially if one changes a setting for that app. Say someone runs sudo systemsettings and makes all sorts of changes. many if not all the configuration files involved will be owned by root now, and changing those settings again (as a regular user) won't stick; some may even prevent one from logging in to KDE/Plasma.
Comment