OnWorks favicon

gksu - Online in the Cloud

Run gksu in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gksu that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



gksu - GTK+ frontend for su and sudo



gksu [-u <user>] [options] <command>

gksudo [-u <user>] [options] <command>


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 commands 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.


--debug, -d

Print information on the screen that might be useful for diagnosing and/or solving

--user <user>, -u <user>

Call <command> as the specified user.

--disable-grab, -g

Disable the "locking" of the keyboard, mouse, and focus done by the program when
asking for password.

--prompt, -P

Ask the user if they want to have their keyboard and mouse grabbed before doing so.

--preserve-env, -k

Preserve the current environments, does not set $HOME nor $PATH, for example.

--login, -l

Make this a login shell. Beware this may cause problems with the Xauthority magic.
Run xhost to allow the target user to open windows on your display!

--description <description|file>, -D <description|file>

Provide a descriptive name for the command to be used in the default message,
making it nicer. You can also provide the absolute path for a .desktop file. The
Name key for will be used in this case.

--message <message>, -m <message>

Replace the standard message shown to ask for password for the argument passed to
the option. Only use this if --description does not suffice.

--print-pass, -p

Ask gksu to print the password to stdout, just like ssh-askpass. Useful to use in
scripts with programs that accept receiving the password on stdin.

--su-mode, -w

Force gksu to use su(1) as its backend for running the programs.

--sudo-mode, -S

Force gksu to use sudo(8) as its backend for running the programs.

Use gksu online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    VirtualGL redirects 3D commands from a
    Unix/Linux OpenGL application onto a
    server-side GPU and converts the
    rendered 3D images into a video stream
    with which ...
    Download VirtualGL
  • 2
    Library to enable user space
    application programs to communicate with
    USB devices. Audience: Developers, End
    Users/Desktop. Programming Language: C.
    Download libusb
  • 3
    SWIG is a software development tool
    that connects programs written in C and
    C++ with a variety of high-level
    programming languages. SWIG is used with
    Download SWIG
  • 4
    WooCommerce Nextjs React Theme
    WooCommerce Nextjs React Theme
    React WooCommerce theme, built with
    Next JS, Webpack, Babel, Node, and
    Express, using GraphQL and Apollo
    Client. WooCommerce Store in React(
    contains: Products...
    Download WooCommerce Nextjs React Theme
  • 5
    Package repo for ArchLabs This is an
    application that can also be fetched
    It has been hosted in OnWorks in...
    Download archlabs_repo
  • 6
    Zephyr Project
    Zephyr Project
    The Zephyr Project is a new generation
    real-time operating system (RTOS) that
    supports multiple hardware
    architectures. It is based on a
    small-footprint kernel...
    Download Zephyr Project
  • More »

Linux commands