Hi
How to run an application using kdesu without a password?
how to run yast without password or other GUI apps?
I know how to add apps command terminal using sudo but I don’t know for kdesu GUI
please help
Thanks
This has been asked and answered quite a few times already.
See here e.g. for how to configure kdesu to use sudo (and respect its settings) instead of the default su: https://forums.opensuse.org/showthread.php/512950-How-use-quot-sudo-quot-without-password?p=2750273#post2750273
Thanks
i use this command and worked but that for all apps kdesu
kwriteconfig5 --file kdesurc --group super-user-command --key super-user-command sudo
How do I go back to an earlier state?
but i want for apply selected my app (software management and gparted)
Delete the file ~/.config/kdesurc .
But why would you want to, if it works and does what you wanted?
but i want for apply selected my app (software management and gparted)
This works for all apps started via kdesu or xdg-su (when using KDE).
And in particular for YaST (Software Management).
If you are not using KDE, then your question was wrong in the first place though…
I’m not sure at the moment how gparted is started by the standard menu entry, I’d have to look.
But you can use KDE’s menu editor to change the start command.
I wanted and I did, but I asked to know
Your order will not be imposed on only a few apps under kdesu (except gparted)
I applied a few apps on sudo (/etc/suders)
Can the same thing be done kdesu(/.config/kdesure)
Not all of them for just a few programs kdesu
Ok, I was just just surprised about that question…
Your order will not be imposed on only a few apps under kdesu (except gparted)
It should work with all apps you start using kdesu.
And therefore for all apps using xdg-su as well when run inside a KDE session as I wrote.
I had a look though, and gparted uses a command named /usr/sbin/gparted_polkit to start it.
This in turn uses pkexec to start it.
So you should be able to configure that to not require a root password via the polkit settings…
I cannot tell you how to exactly do that at this point though.
I did explain how to run YaST via pkexec without requiring a root password in the past, maybe that will help.
See https://forums.opensuse.org/showthread.php/505762-run-yast-without-entering-root-password-sudoers-help
I applied a few apps on sudo (/etc/suders)
Can the same thing be done kdesu(/.config/kdesure)
Not all of them for just a few programs kdesu
After the change, kdesu uses sudo as mentioned, and should just respect everything you changed in /etc/sudoers.
But again, this only applies to kdesu, or xdg-su run in a KDE session (where it uses kdesu).
PS, particularly I mean:
https://forums.opensuse.org/showthread.php/505762-run-yast-without-entering-root-password-sudoers-help?p=2701795#post2701795
If you replace “/usr/sbin/yast2” there with “/usr/sbin/gparted”, it should work I think.
I.e. create a file /usr/share/polkit-1/actions/org.opensuse.pkexec.gparted.policy with the following content:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/software/polkit/policyconfig-1.dtd">
<policyconfig>
<action id="org.opensuse.pkexec.gparted">
<message>Authentication is required to run gparted</message>
<icon_name>gparted</icon_name>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>
But I have not tested this…
Thank you very much for help
I have a question
i run this command
kwriteconfig5 --file kdesurc --group super-user-command --key sup
er-user-command sudo
then added this command /etc/sudors.
think_alone ALL=(ALL) NOPASSWD: ALL
and worked for all apps kdesu
But why, when I run dolphin super user mode because it will remove the icons? (So simple it does not have all the graphics mode) this problem have for “kdesu systemsettings5”,too
Well, you either set a icon theme for root that doesn’t contain the corresponding icons (you could change that with “kdesu systemsettings5”), or the applications do not detect that they are running inside a KDE desktop because sudo doesn’t forward the corresponding environment variables.
Try to add “XDG_CURRENT_DESKTOP” to the env_keep list in /etc/sudoers.