[Novalug] ssh as root ( beating a dead horse into the ground)
Matt Ryanczak
ryanczak at gmail.com
Wed Mar 7 11:21:21 EST 2012
On 03/07/2012 11:18 AM, John Holland wrote:
> This started I think with the question "how can I run an X GUI app as
> root within a normal user X session?"
>
> I offered ssh'ing as root into localhost. Anyone have another
> suggestion? When you sudo a X command does it work with the DISPLAY etc?
gksudo (or gksu)
man page:
> SYNOPSIS
> gksu
>
> gksu [-u <user>] [options] <command>
>
> gksudo [-u <user>] [options] <command>
>
> DESCRIPTION
> This manual page documents briefly gksu and gksudo
>
> gksu is a frontend to su and gksudo is a frontend to sudo. Their primary purpose is to run graphical com‐
> mands that need root without the need to run an X terminal emulator and using su directly.
>
> Notice that all the magic is done by the underlying library, libgksu. Also notice that the library will
> decide if it should use su or sudo as backend using the /apps/gksu/sudo-mode gconf key, if you call the gksu
> command. You can force the backend by using the gksudo command, or by using the --sudo-mode and --su-mode
> options.
>
> If no command is given, the gksu program will display a small window that allows you to type in a command to
> be run, and to select what user the program should be run as. The other options are disregarded, right now,
> in this mode.
More information about the Novalug
mailing list