This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Make kdesu not ask for password

Tags: None
(comma "," separated)
warnec
Registered Member
Posts
96
Karma
0

Make kdesu not ask for password

Fri Oct 09, 2009 8:35 pm
So today I am beggining my long and crooked path into becoming an ultimate Linux power-user ;D I've tampered with sudoers file to give me all root rights for my package manager without asking for password. I WANT MORE OF THAT POWER! xD

Please tell me, how can I make kdesu not ask for password (so that e.g. I run kdesu kate and it doesn't ask for password, it simply starts)
warnec
Registered Member
Posts
96
Karma
0

Re: Make kdesu not ask for password

Fri Oct 09, 2009 9:11 pm
I've also been thinking about a "UAC-like" version of sudo, if you like, you can read here ;) :

http://bbs.archlinux.org/viewtopic.php? ... 38#p633338

So I extend my question a little now. Things I want to know:

(1) If it's possible to disable kdesu password completely and how

(2) If it's possible to disable kdesu password, but ask the user if he/she is sure he/she wants to run a program w/ administrator rights and how
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Make kdesu not ask for password

Fri Oct 09, 2009 9:44 pm
this may help (but it appears to be distro specific) http://www.benkevan.com/blog/default-kd ... nd-not-su/ it says openSuse (and maybe others) changed kdesu to use su instead of sudo thus negating the sudoesrs file being referenced when using kdesu


OpenSuse Leap 42.1 x64, Plasma 5.x

warnec
Registered Member
Posts
96
Karma
0

Re: Make kdesu not ask for password

Sat Oct 10, 2009 1:01 pm
Seems quite helpful in achieving what I want to do.


Thanks!

PS.: So if I set no password for sudo and then execute "kdesu kate" for example, it should run immediately, provided I use your advice before, right?
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: Make kdesu not ask for password

Sat Oct 10, 2009 2:42 pm
afaik it should - I bookmarked the page but haven't actually bothered to use it, though I did post a request to openSuse to make the change https://features.opensuse.org/307257 but no one has bothered to vote for it


OpenSuse Leap 42.1 x64, Plasma 5.x

warnec
Registered Member
Posts
96
Karma
0

Re: Make kdesu not ask for password

Sat Oct 10, 2009 5:57 pm
I have now ;)
warnec
Registered Member
Posts
96
Karma
0

Re: Make kdesu not ask for password

Sun Oct 11, 2009 7:55 pm
PS.: Just tried your command and it doesn't work in Archlinux, unfortunately. Still ask for password even though /etc/sudoers claims otherwise.

See here:

http://wiki.archlinux.org/index.php/Dis ... o_password

Code: Select all
KDE - kdesu

kdesu may be used under KDE to launch GUI applications with root privileges. It is possible that by default kdesu will try to use su even if the root account is disabled. Fortunately we can tell kdesu to use sudo instead of su.
There are two ways to do so:
Recompile kdebase with '--with-sudo-kdesu-backend' configure switch.
Create a kdesurc file in '/usr/share/config/' with the following:
[super-user-command]
super-user-command=sudo


Good thing Arch has so many wikis :P

PS.: Or maybe it needs to be:
Code: Select all
kwriteconfig --file kdesurc --group super-user-command -key
super-user-command sudo

as seen here:
http://mailman.archlinux.org/pipermail/ ... 05091.html
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Make kdesu not ask for password

Mon Oct 12, 2009 7:28 am
Note that if you have already run KDESu, you may need to force it to reload its configuration:

Code: Select all
killall -2 kdesu kdesud


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]