[nzlug] Cacheing passwords.

Michal Ludvig michal at logix.cz
Fri Nov 3 16:37:11 NZDT 2006


cattz at orcon.net.nz wrote:

> How do I get kdesud to cache passwords correctly? When the keep password
> box is ticked it doesn't keep it and there is no option in the Control
> Center for adjusting the time for which it is kept.
> 
> If we can get it going will it keep the cache between reboots so that I
> don't have to type the root password in 3 times every restart for
> firestarter, kuroo and kwallet.

You can set password-less sudo for all or some programs. E.g. this is
what I have in /etc/sudoers for wifi management tool that I run via kdesudo:

username ALL=(ALL) NOPASSWD: /usr/bin/wlassistant

or even

username ALL=(ALL) NOPASSWD: ALL

(Note to all: no, I'm not interested in flames about security
implications of this setup).

kdewallet, as others pointed out, is another issue as it asks for a
different password (although you may have set it to the same as your
account one). So the above trick won't work. You can, however, remove
password from kdewallet completely. At least I believe so.

> Or do I have to write init scripts for these run as as root apps if I
> want them to start on boot.

Well if the mentioned programs are system services and not some desktop
things they probably should be started on boot. But as I don't know what
firestarter nor kuroo is I can't tell for sure.

Michal




More information about the NZLUG mailing list