[Xfce-bugs] [XFCE 0000217]: Adding 'run as root' to launchers and xfrun4

xfce-bugs at xfce.org xfce-bugs at xfce.org
Fri Jun 4 10:44:12 CEST 2004


A BUGNOTE has been added to this bug.
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=0000217
=======================================================================
Reporter:                   benxor
Handler:                    bmeurer
=======================================================================
Project:                    XFCE
Bug ID:                     0000217
Category:                   general
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     assigned
=======================================================================
Date Submitted:             2004-06-03 07:27 GMT
Last Modified:              2004-06-04 08:44 GMT
=======================================================================
Summary:                    Adding 'run as root' to launchers and xfrun4
Description: 
It would be great to have a 'run as root' or 'run as other user' option
added to launchers on the panel, and to xfrun4.
=======================================================================

-----------------------------------------------------------------------
 huysmans - 2004-06-03 07:58 GMT 
-----------------------------------------------------------------------
"GNOME and KDE already have this functionality - why not XFCE?"

1) That's a lousy argument

2) because it's hard and has all kinds of security implementations

3) because no-one has done the work


Some of what you want, you may be able to achieve using sudo.

-----------------------------------------------------------------------
 bmeurer - 2004-06-03 10:28 GMT 
-----------------------------------------------------------------------
I wrote a sudo based implementation for xfce4-session, we could put that
into libxfce4util and use it.

-----------------------------------------------------------------------
 benxor - 2004-06-03 12:24 GMT 
-----------------------------------------------------------------------
1) How so? Because I'm saying something is standard in the big desktops, it
could also be added to... this desktop?

2) you could copy GNOME or KDE's code for it? use their implementation. is
there a standard set out by freedesktop for it?

bmeurer: a sudo-based xfce4-session? What would that do?

-----------------------------------------------------------------------
 huysmans - 2004-06-03 13:10 GMT 
-----------------------------------------------------------------------
"1) How so? Because I'm saying something is standard in the big desktops,
it could also be added to... this desktop?"

GNOME/KDE have a million things we don't have. A feature is either useful
or it's not. 

"2) you could copy GNOME or KDE's code for it? use their implementation.
is there a standard set out by freedesktop for it?"

Perhaps. It still requires someone to do the work and to look at security
implications. 

Benedikt meant he made a sudo-based system for xfce4-session (to shutdown
or reboot the computer). That's interesting, because it means there is
definitely code that can be used.

Another option is to use something like gksu (I think it's called that).

-----------------------------------------------------------------------
 bmeurer - 2004-06-03 18:33 GMT 
-----------------------------------------------------------------------
The gksu code is interesting, but it has two major problems:

a) its not yet finished (the author is currently reworking the stuff to
separate the backend/frontend code, once finished, one can simply use the
libgksu).

b) its not very portable. The author is a doesn't care well about
"foreign" plattforms. From a quick look at the code, atleast the su part
will run into problems, since it requires forkpty() which is only present
in BSD-derived Unices. Maybe I'm just too paranoid, since every plattform
currently officially supported by Xfce - that is Solaris, *BSD and Linux -
has forkpty.

Anyway, we could make libgksu an optional depend and provide "Run as..."
if libgksu is present.

-----------------------------------------------------------------------
 benxor - 2004-06-04 08:44 GMT 
-----------------------------------------------------------------------
huysmans: This feature is useful. The work-around for it's lack is that I
have to put some complex run-inside-xterm crap. A normal user wouldn't
even know how to do that.
   I think it's an important feature, and that a lot of people would enjoy
seeing it. But anyway sounds like there's a couple of promising codebases
for it so I leave it as a suggestion =P



More information about the Xfce-bugs mailing list