Hi there

If you need a GUI editor to edit files as root e.g samba.conf then from the console / terminal :

hrafn@siggi:~$ SUDO_EDITOR=kate sudoedit /etc/samba/samba.conf
[sudo] password for hrafn:

Then you'll get into the editor in root mode - the above example uses KATE as the editor but you can use whatever editor program suits you.

Seems a silly restriction not to allow GUI editor in SU mode if you are authorized as root -- you are much more likely to make mistakes using a CLI editor such as VI -- especially if you need to compare files.

I'm all in favour of security but this restriction seems BONKERS to me.