How to use sudo and a graphical program?

Rashkae ubuntu at tigershaunt.com
Wed May 2 14:23:46 UTC 2012


On 05/02/2012 10:00 AM, 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?
>

Try sudo -s.  If that doesn't work, let us know exactly what error 
message you're getting.






More information about the ubuntu-users mailing list