-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ken Schneider wrote:
> On Sun, 2006-01-08 at 02:02 +0900, Satoru Matsumoto wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Sergei Cherepanov wrote:
>>> Hi
>>> 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?
>> I don't know whether it will be enogh for you or not, try
>>
>> $ sux - -c 'smart --gui'
>>
>> You will be prompted to enter root password, though.
>>
> When I launch smart in KDE I use the menu entry under
> System-->Configuration and it automatically asks for root's password.
> Perhaps you can launch it the same way. Since smart is using rpm to
> install/delete packages you will need to run it as root.

Yes, that's a .desktop file I add in my smart RPM and basically it's exactly 
the same as
kdesu - -c 'smart --gui'

If you're on GNOME you might prefer to do
gnomesu - -c 'smart --gui'

And this one independently from KDE or GNOME (no popup for the root passwort, 
asked on the shell):
sux - -c 'smart --gui'

Both with all of those 3, the annoying thing is that it's asking for the root 
user's password.
I use sudo a lot, but I always use smart's shell interface ;)
  sudo smart --shell
works fine, it's related to X-window and most probably to Python-GTK.

cheers
- --
  -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
  /\\ <[EMAIL PROTECTED]>       <[EMAIL PROTECTED]>
 _\_v The more things change, the more they stay insane.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDwDJSr3NMWliFcXcRAreGAJ9wRiu+NfcgQSRusokp96rWpa44nwCfZIbW
mILvw/6BtwprvZzMmxfnyRY=
=FwkK
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to