Skip to content

A simple replacement for gksu/ktsuss etc that allows you to run a program with different privileges ( root etc ).

Notifications You must be signed in to change notification settings

KeithDHedger/GtkSu

Repository files navigation

GtkSu (c)K.D.Hedger 2013-2019
kdhedger68713@gmail.com

Gtksu - what is it?

Simple its a simple replacemnet for gksu/ktsuss etc that alows you to run a program with diferrent priviliges ( root etc ).

Although there are other programs of theis type most if not all rely on polkit or have a large number of dependencies, apps like ktsuss which this app was inspired by ( avaiable here:http://ktsuss.googlecode.com/files/ktsuss-2.tar.gz ), some like ktsuss seem to have been abandoned ( last commit was 2011 ).

Also it seems that whenever polkit ( which is a nightmare! ) is updated these programs break, so this is the result there are few dependencies a reasonable recent gtk and glib and thats it.

Gtk Version
Gtk Version
Qt5 Version
Qt5 Version

Installation

Just run ./autogen.sh from this folder then make and sudo make install.
To install to ( say ) /usr instead of the default /usr/local, add --prefix=/usr, --enable-ktsuss-link will as it says link ktsuss to gtksu so that some programs that hard code the files think that ktsuss is being used ( spacefm ).

You can also choose to build a QT5 version by adding --enable-qt5 to the configure command, the default is to build a gtk GUI.
To install Qt5 go to here:
http://qt-project.org/downloads

Download the required file and then do this:
http://qt-project.org/wiki/Install_Qt_5_on_Ubuntu

If you have installed in /opt/... which is the default for the installer to compile with the --enable-qt5 flag add this line:
/opt/Qt5.2.1/5.2.1/gcc_64/lib
to /etc/ld.so.conf
and do this:
PKG_CONFIG_PATH=/opt/Qt5.2.1/5.2.1/gcc_64/lib/pkgconfig ./configure --prefix=/usr --enable-ktsuss-link --enable-qt5

If you have installed Qt5 elsewhere just adjust the /etc/ld.so.conf and PKG_CONFIG_PATH to suit.

If your distro disables the root account ( I'm looking at you Ubuntu! ) you may have to set a root password like so:
Open a Terminal and type:
sudo su
passwd

Enter a new password for root twice you may also have to run these two commands whilst logged in as root:

pwconv
grpconv

Finally logout
exit

You can now type roots password in to the GtkSu gui and run commands as root.

Usage:

gtksu [OPTION] [--]
Run a command as another user
-u, --user USER Runs the command as the given user
-m, --message MESG Change default message in ktsuss window

Simple usage:
gtksu terminal.

If you need to add options use -- like so:
gtksu -u root -- kkterminal --hold -e ls -AF /

This programme has the potential to hose your system if used unwisely, BE WARNED!
May present a security risk so use at your own risk.

Bugs etc to the above email address.

About

A simple replacement for gksu/ktsuss etc that allows you to run a program with different privileges ( root etc ).

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published