[Xfce-bugs] [XFCE 0000122]: Add 'run as root' or 'run as other user' option to xfrun4

xfce-bugs at xfce.org xfce-bugs at xfce.org
Mon Feb 23 05:10:14 CET 2004


A BUGNOTE has been added to this bug.
=======================================================================
http://bugs.xfce.org/view_bug_page.php?f_id=0000122
=======================================================================
Reporter:                   benxor
Handler:                    
=======================================================================
Project:                    XFCE
Bug ID:                     0000122
Category:                   other
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
=======================================================================
Date Submitted:             2004-02-23 02:30 GMT
Last Modified:              2004-02-23 04:10 GMT
=======================================================================
Summary:                    Add 'run as root' or 'run as other user' option to xfrun4
Description: 
I've discovered that due to some low-level security change in my system
after an update, I can no longer run X applications from the command line
as root. This makes it impossible to start a program as root, in X, which
I need to do in order to read documents off my windows drive (mounted, as
always, with root access only).

Could a 'run as root' or 'run as different user' option be attached to
launchers in the panel and/or the xfrun4 run dialogue to allow users to
run different processes as root in XFCE regardless of the permissions
constricting them from doing so from a terminal?
=======================================================================

-----------------------------------------------------------------------
 kelnos - 2004-02-23 04:10 GMT 
-----------------------------------------------------------------------
if you're unable to run GUI apps as root from your terminal application,
you're not going to be able to run them from xfrun4 either, as xfrun4 does
the exact same thing your shell does when it runs programs - forks another
process and executes the app.

probably what you need to do is have root merge the contents of your
~/.Xauthority file when you run commands as root.  this can be done using
xauth (see 'man xauth'), by putting the appropriate command in root's
~/.profile or ~/.cshrc file.  IIRC, if you're using 'sudo', it should
inherit the non-root user's environment, so this shouldn't be an issue (as
the non-root user's .Xauthority file will be used).

regardless, a "run as root" option might be useful...



More information about the Xfce-bugs mailing list