Comment 3 for bug 1374917

Revision history for this message
nadrimajstor (ipejic) wrote : Re: After use sudo (pluma) file owner now root

Looking at the man pages, `gksu` and `gksudo` was always a option for running graphical apps with elevated privileges as `sudo` will give root privileges but will retain current user environment.
Upstream offered a PolicyKit based gksu https://wiki.gnome.org/action/show/Apps/Attic/gksu?action=show&redirect=gksu as a better option, however due to not being maintained and having open CVEs for long time, after 12.04, gksu-polkit package was dropped https://bugs.launchpad.net/ubuntu/+source/gksu-polkit/+bug/1172339.
So, options are:
a)
$ gksudo pluma

b)
$ sudo -i
# pluma

c)
$ sudo su - root
# pluma