How can I get package installer to run in a GUI (gnome) as root. I keep getting a message that says "You do not have sufficient privileges to run this operation".
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Mike Dwiggins's mail client expels the following stream of bytes on 31/05/09 16:17 (EDT):
How can I get package installer to run in a GUI (gnome) as root. I keep getting a message that says "You do not have sufficient privileges to run this operation".
Use su -c 'gpk-install-local-file x.rpm' or sudo gpk-install-local-file x.rpm, where x.rpm is the rpm you are trying to install.
Or, you could try adding your user into the root group.
- -- C Li (vishwin/O) Can't think of a witty .sigline today...
On Sun, May 31, 2009 at 10:54 PM, C Li vishwin80@gmail.com wrote:
How can I get package installer to run in a GUI (gnome) as root. I keep getting a message that says "You do not have sufficient privileges to run this operation".
Use su -c 'gpk-install-local-file x.rpm' or sudo gpk-install-local-file x.rpm, where x.rpm is the rpm you are trying to install.
Or, you could try adding your user into the root group.
Wrong, sorry. The reason that it's not going to run as root is because unless you've setup PolicyKit to do otherwise, it's not going to work correctly, so gnome-packagekit detects uid 0 and warns you.
Running a PackageKit GUI as root is not a good plan at all. With GTK_MODULES a malicious user could silently install software. It's totally insecure.
Richard.
Richard Hughes wrote:
Wrong, sorry. The reason that it's not going to run as root is because unless you've setup PolicyKit to do otherwise
s/setup/patched and rebuilt/ PolicyKit is hardcoded to reject root, for no good reason. https://bugzilla.redhat.com/show_bug.cgi?id=447266 It works perfectly fine as root when this useless check is removed (though it will prompt even root for authentication unless you change the policies to blanket allow root to do everything), so I have no idea why the check is even there.
Kevin Kofler