-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sergei Cherepanov wrote:
I've started to use smart instead of apt recently and i have a problem. Smart works great from console with sudo but when i try to run it with --gui option i get "permission denied" on every rpm operation (under unprivileged user) or "RuntimeError: could not open display" when i start it with sudo. I think i can make smart suid but this will result in a possible security hole. Is there a more gentle way?
yes and no
Weird enough, I found no way to run smart --gui with sudo either.
kdesu -c "smart --gui" will do, but will ask for the root password.
sudo kdesu -c "smart --gui" won't work, same display error.
A suid wrapper didn't help either.
That's pretty much a python-gtk bug AFAICT.
The smart package on Fedora uses consolehelper and PAM to run is as root, but that doesn't exist on
SUSE.
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\