GtkSu

System Software

Source:

2
Score 52%
Description:

Gtksu - what is it?

Simple its a simple replacement for gksu/ktsuss etc that allows you to run a program with different privileges ( 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 ( available 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 that's it.

Can now be built with a Qt5 qui instead of Gtk, just use the --enable-qt5 switch to configure.

See the INSTALL file for details on how to install Qt5.

Installation

Just run ./configure OR ./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 ).

Development version is now available on Github:
https://github.com/KeithDHedger/GtkSu
git clone https://github.com/KeithDHedger/GtkSu.git

Please see the BUGS-ETC file for instructions on reporting bugs etc.
Bugs reported on these boards or sent as PM's will be ignored.


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 -- terminal --hold -x 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.

Please see the README/INSTALL files for my email to let me know about any bugs problems etc.
Last changelog:

4 years ago

0.1.6
Removed redundant scripts folder.
Updated manpage.
Removed forced CFLAGS and CXXFLAGS.
Added to Github:https://github.com/KeithDHedger/GtkSu

0.1.5
Updated licence info in files.
Fixed some distros not setting some users environment variables.

0.1.4
Command line to gtksu can now be quoted or not eg to open the file "/tmp/dat 1" all these are the same:
gtksu -- leafpad /tmp/dat\ 1
gtksu -- "leafpad /tmp/dat\ 1"
gtksu -- 'leafpad /tmp/dat\ 1'
gtksu -- leafpad "/tmp/dat 1"
gtksu -- 'leafpad \"/tmp/dat 1\"'

0.1.3
Added submitted patch to fix minor bug when using --user switch, thanks to Ludger Krämer for that.

0.1.2
Removed unnecessary .desktop and png file.
Minor update to man page.

0.1.1
Swapped butons in gtk.
Fixed not displaying default message.
Fixed not displaying alternate message.
Added option to build with QT5 instead of Gtk ( default ).

0.1.0
Updated manpage.
Loads more error checking.
CD to users home or "/" before running command.
Only roots PATH now includes /sbin and /usr/sbin.
Cleaned environment before switching user.
Returns exit status of su'ed program.
Aborts if environment can't be cleaned or permissions can't be dropped.
Permissions in suwrap program only elevated when needed.
Fixed make asking for admin password.

0.0.8
Fixed install of zipped manpage.
Fixed wrong version number being picked up.

0.0.7
Added install instructions for debian/fedora users including dependencies.
Added 'configure' file etc so now no longer depends on autotools.

0.0.6
Fixed a bug where '--' used to mark end of options used when no options.
Removed debugging messages.

0.0.5
First release into the wild.

Moatib

4 years ago

Hey

Since I already have ktsuss installed, should I configure gtjsu with --enable-ktsuss-link?

Report

Moatib

4 years ago

Gtksu, not gtjsu, sorry.

Report

C

keithhedger

4 years ago

No! it would replace the ktsuss app with a link, it just pretends to be ktsuss, if you don't want to install ktsuss or polkit breaks it again THEN use the --enable-ktsuss-link you can of course have both programs installed with no problems.

Report

Moatib

4 years ago

Thanks!

Report

4 years ago

0.1.6
Removed redundant scripts folder.
Updated manpage.
Removed forced CFLAGS and CXXFLAGS.
Added to Github:https://github.com/KeithDHedger/GtkSu

0.1.5
Updated licence info in files.
Fixed some distros not setting some users environment variables.

0.1.4
Command line to gtksu can now be quoted or not eg to open the file "/tmp/dat 1" all these are the same:
gtksu -- leafpad /tmp/dat\ 1
gtksu -- "leafpad /tmp/dat\ 1"
gtksu -- 'leafpad /tmp/dat\ 1'
gtksu -- leafpad "/tmp/dat 1"
gtksu -- 'leafpad \"/tmp/dat 1\"'

0.1.3
Added submitted patch to fix minor bug when using --user switch, thanks to Ludger Krämer for that.

0.1.2
Removed unnecessary .desktop and png file.
Minor update to man page.

0.1.1
Swapped butons in gtk.
Fixed not displaying default message.
Fixed not displaying alternate message.
Added option to build with QT5 instead of Gtk ( default ).

0.1.0
Updated manpage.
Loads more error checking.
CD to users home or "/" before running command.
Only roots PATH now includes /sbin and /usr/sbin.
Cleaned environment before switching user.
Returns exit status of su'ed program.
Aborts if environment can't be cleaned or permissions can't be dropped.
Permissions in suwrap program only elevated when needed.
Fixed make asking for admin password.

0.0.8
Fixed install of zipped manpage.
Fixed wrong version number being picked up.

0.0.7
Added install instructions for debian/fedora users including dependencies.
Added 'configure' file etc so now no longer depends on autotools.

0.0.6
Fixed a bug where '--' used to mark end of options used when no options.
Removed debugging messages.

0.0.5
First release into the wild.

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling me
Details
license
version
0.1.6
updated Nov 27 2015
added Jun 02 2013
downloads today
0
page views today 0
System Tags app software