Bug 1027437

Summary: May we have a gksu for EPEL?
Product: [Fedora] Fedora Reporter: Todd <ToddAndMargo>
Component: gksu-polkitAssignee: Dan Mashal <dan.mashal>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 19CC: dan.mashal, negativo17
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 09:04:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Todd 2013-11-06 20:11:01 UTC
May we please also have a gksu-polkit for EPEL 6.x as does FC19?

Comment 1 Dan Mashal 2014-02-28 21:35:57 UTC
Sorry for the late response. May I ask what you need it for? I don't think it is really used anymore. Are you not being asked for auth in the proper places?

Please provide some more specific information.

Comment 2 Todd 2014-02-28 22:11:24 UTC
Hi Dan,

It was a functionality taken away from us.  :'(
https://duckduckgo.com/?q=red+hat+gksu

I use it all over the place for administrative functions I want elevated but do not want to give blanket access to everyone with /etc/sudoers.  It would be a big pain in the neck not to have it available.  A few examples:

This opens my scripts OpenVPN tunnels to clients:
gksu -u root "/home/linuxutil/OpenTunnel"

This one runs my mount and dismount script for my backup drive:
gksu -u root "/home/linuxutil/lin-bak umount"

This one starts Leafpad as root so I can edit system files, such as my firewall.  Catch the bug work around in Leafpad?
gksu -u root "echo "" | /usr/bin/leafpad"

This one fires up my restore routine from my backup drive:
/usr/bin/gksu -u root "xterm -fn 8x16 -fg darkgreen -bg white -bdc -cc "33:48,37:48,45-47:48,38:48" -geometry 100x24+185+346 -exec  /home/linuxutil/restore-rn-root linux"

Configure my sound card:
gksu -u root "/usr/bin/system-config-soundcard"

Configure my nVidia card:
gksu -u root "nvidia-xconfig"

There are lots others too.

-T

Comment 3 Simone Caronni 2014-06-11 10:35:17 UTC
Hello, upstream is so dead that I can't find the source code anymore. I've built it for epel7 as the package does not require any change:

koji.fedoraproject.org/koji/buildinfo?buildID=537749

For el6 the code is no longer compatible with the PolicyKit available in the distribution; so it would require some effort to make it work. Compilation stops at:

gksu-server.o: In function `gksu_server_init':
/builddir/build/BUILD/gksu-polkit/mechanism/gksu-server.c:264: undefined reference to `polkit_authority_get_sync'
collect2: ld returned 1 exit status

If someone is willing to provide patches for el6 I will happily apply them.

Comment 4 Todd 2014-06-11 21:11:51 UTC
Hi Simone,

Use the SRPM over at
    http://pkgs.repoforge.org/gksu/
    http://pkgs.repoforge.org/gksu/gksu-2.0.0-1.rf.src.rpm

You will need the supporting packages over at
    http://pkgs.repoforge.org/libgksu/
    http://pkgs.repoforge.org/libgksuui/

You will also need 
    nautilus-devel
Which should be easy to find.

Many thanks,
-T

Comment 5 Simone Caronni 2014-06-12 09:04:40 UTC
Gksu/libgksu are new packages, you need new reviews for both packages, as both are new to Fedora/EPEL. This is not a gksu-polkit "version" for epel 6.

gksu-polkit is already unmaintained and this is the PRECURSOR to it... According to the gksu homepage (http://www.nongnu.org/gksu/):

"gksu is being replaced by gksu PolicyKit, please take a look at http://live.gnome.org/gksu"

It has been left unmaintained since 2009.

If really you want to proceed, you need to post reviews for these new packages according to the guidelines. They have been in the past, but have been dropped in favor of the already dead gksu-polkit:

https://bugzilla.redhat.com/show_bug.cgi?id=468466
https://bugzilla.redhat.com/show_bug.cgi?id=468467

This bug is related to gksu-polkit, not other packages. Closing it.