LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   YUMEX - "error executing command as another user: not authorized" (https://www.linuxquestions.org/questions/linux-software-2/yumex-error-executing-command-as-another-user-not-authorized-4175461486/)

Galaxy_Stranger 05-10-2013 08:09 PM

YUMEX - "error executing command as another user: not authorized"
 
I have:
CentOS 6
yumex-3.0.5-2.el6.noarch

When I run YUMEX, it errors out stating: "FATAL ERROR: backend not running as expected (yumex will close)"

The output behind the Fatal Error window says: "Error executing command as another user: Not authorized. This incident will be reported."

Running "yumex -d" at the command-line confirms this. So, I took all this information and poked around the etherwebz. I did find a bug at Red Hat from a year ago that matched this description, but was patched in an earlier version of YUMEX.

There are no updates for this software and I have no idea how to proceed. I need help tracking this down so I can fix this.

What can I do next?

John VV 05-10-2013 08:32 PM

you need to be root
and not only root but with the FULL root $PATH

the programs needed are in /sbin and /usr/sbin

and those folders are not included in a normal user's $PATH ( for security needs )

the command " su " will error .It is using the current normal users $PATH

You need to use " su - " ( blank space then a dash )

Galaxy_Stranger 05-10-2013 09:11 PM

Thanks for the help.

Ok, I normally run yumex via the GUI icon. It then asks me for the root password.

When I started having this problem, I ran it as my normal user from the command-line to get more info.

When I "su -" to root using Konsole, I get "Don't run yumex as root it is unsafe (Use --root to force)". When I do force it, Yumex comes up.

I can't find any information on configuring /etc/yumex.conf or ~/.yumex.conf. I've compared config files to my Fedora 16 machine but can find no differences. How can I configure it to allow my user to run Yumex as before?

John VV 05-10-2013 10:36 PM

seeing as fedora 16 is unsupported

and CentOS is only supporting CentOS 6.4

are you running 6.4

Code:

cat /etc/redhat-release
should output that it is 6.4

yumex-3.0.5-2 is the current in the EPEL repo
it is dated "14-May-2012 "


is the output of
Code:

/usr/bin/yumex -d
the same as this old bug report ?
https://bugzilla.redhat.com/show_bug.cgi?id=825109

as per the Cent-wiki warning
Warning:
This repo has made efforts not to replace system packages. In some cases it has endeavored to directly address CentOS compatibility but has expressly denied inter-repository compatibility as a goal. It may not mix well with other 3rd party repos. So, make SURE you are using the Priorities yum plugin if you are using EPEL ... especially if you mix its packages with those from other 3rd party repos. It should also be noted that, while EPEL may not overwrite distro packages, it may have conflicts with the CentOS extras repo which is enabled by default.

is the Priorities yum plugin installed and configured ?

from the bugzilla report
it looks like if you just use yum and update it will fix it
Code:

su -
yum update

mind you if this is CentOS 6.3 there are no updates

Galaxy_Stranger 05-18-2013 05:09 PM

Sorry - life got in the way...

CentOS version : CentOS release 6.4 (Final)
Yumex rpm : yumex-3.0.5-2.el6.noarch
/usr/bin/yumex -d : No, the output is not the same.
Code:

Traceback (most recent call last):
    File "/usr/bin/yumex", line 25, in <module> from yumexgui import YumexApplication
    File "/usr/lib/python2.6/site-packages/yumexgui/__init__.py", line 27, in <module> import gtk
    File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module> _init()
    File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init _gtk.init_check()
RuntimeError could not open display

Priorities Yum Plugin : yum-plugin-priorities not installed

I installed yumex-plugin-priorities, but I can't find any information on configuring it.


All times are GMT -5. The time now is 10:43 PM.