how to run kdesu without asking password?

erikmccaskey64 erikmccaskey64 at zoho.com
Fri Feb 11 11:38:53 UTC 2011


if i 


visudo
MYUSER ALL=(transmission-user) NOPASSWD: /usr/bin/transmission-gtk


and 


xhost local:transmission-user
sudo -u transmission-user -- /usr/bin/transmission-gtk


then it works perfectly. but my original problem is that it needs a "gnome-terminal" (i need the "kdesu" or whatever in a .desktop file):


echo -e '#!/usr/bin/env xdg-open\n\n[Desktop Entry]\nVersion=1.0\nType=Application\nTerminal=true\nIcon[en_US]=gdu-encrypted-lock\nName[en_US]=transmission-user\nExec=sudo -u transmission-user -- /usr/bin/transmission-gtk\nName=transmission-user\nIcon=gdu-encrypted-lock' > transmission-user.desktop
chmod +x transmission-user.desktop



this is important:
Terminal=true


if i set this to false, it doesn't work. if i set this to true, sudo perfectly works, but theres a gnome-terminal opened.


theres no gksu under Fedora 14.


but thank you!





---- Be Fri, 11 Feb 2011 03:27:59 -0800 Tom H <tomh0665 at gmail.com> írta ---- 

On Fri, Feb 11, 2011 at 6:09 AM, erikmccaskey64 <erikmccaskey64 at zoho.com> wrote: 
> [root at a ~]# kdesudo 
> bash: kdesudo: command not found... 
> [root at a ~]# yum search kdesudo 
> Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit 
> Adding en_US to language list 
> Existing lock /var/run/yum.pid: another copy is running as pid 29015. 
> Another app is currently holding the yum lock; waiting for it to exit... 
>   The other application is: PackageKit 
>     Memory :  25 M RSS ( 66 MB VSZ) 
>     Started: Fri Feb 11 12:05:10 2011 - 00:06 ago 
>     State  : Sleeping, pid: 29015 
> Loading mirror speeds from cached hostfile 
>  * fedora: mirrors.uaip.org 
>  * rpmfusion-free: download1.rpmfusion.org 
>  * rpmfusion-free-updates: download1.rpmfusion.org 
>  * rpmfusion-nonfree: download1.rpmfusion.org 
>  * rpmfusion-nonfree-updates: download1.rpmfusion.org 
>  * updates: mirrors.uaip.org 
> Warning: No matches found for: kdesudo 
> No Matches found 
> [root at a ~]# apropos kdesu 
> kdesu (1)            - Runs a program with elevated privileges 
> [root at a ~]# apropos kdesudo 
> [root at a ~]# 
> 
> 
> kdesu was in the "kdebase-runtime" package. but where is kdesudo? 
 
It lloks like it's a kubuntu app (!); sorry. 
 
http://opendesktop.org/content/show.php/KdeSudo?content=72106 
 
In GNOME, you can set gksu/gksudo to use either su or sudo as a 
backend either at the cli with "--su-mode" or "--sudo-mode" or 
permanently in the gconf settings. 
 
I don't use KDE so I don't know whether it's possible (it *must* be) 
and, if it is, how. :( 
-- 
users mailing list 
users at lists.fedoraproject.org 
To unsubscribe or change subscription options: 
https://admin.fedoraproject.org/mailman/listinfo/users 
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/users/attachments/20110211/ffc49095/attachment.html 


More information about the users mailing list