How to use sudo and a graphical program?

Gilles Gravier ggravier at fsfe.org
Wed May 2 14:19:51 UTC 2012


Hi!

On 02/05/2012 16:00, Kevin O'Gorman wrote:
> I guess I don't understand access permissions to my display.
>
> If I become root via "sudo su -", I cannot use gedit or gvim because
> they are unable to open the display.
>
> If I start them as "sudo gedit somefile" it works, but when I'm doing
> serious admin work, I consider this tedious.
>
> I'm not complaining so much as wanting to understand.  Any clues?


alias sgvim "gksudo gvim"
alias sgedit "gksudo gedit"

Gilles





More information about the ubuntu-users mailing list