I've been using this solution:
to have a different login and sudo passwords.
Basically, I've set in sudoers the runaspw and runas_default options. It asks me for another users password when I run sudo.
It worked well in Jaunty (9.04), but after upgrading to Karmic (9.10) gksudo stopped working. Testing uncovered that the "runas_default" option in "defaults" part of the sudoers file is responsible for that.
gksudo works as expected:
- with runaspw but without the runas_default set in sudoers (asks for root's passwd)
- with neither runaspw nor runas_default set in sudoers (asks for my passwd)
- when executed with "-u username" option (asks for that users passwd)
running "gksudo -d gedit" exports this:
I've been searching for two days for any solution, but I found no mention of it anywhere. Can anybody help or point me in any direction? Does anybody know what changed in gksu lately?
No ask_pass set, using default!
buffer: -sudo: unable to cache uid, already exists-
brute force GNOME_SUDO_PASS ended...
No password prompt found; we'll assume we don't need a password.
I've seen the new gksu-polkit in repo, but it has broken dependencies (there's no libgee0, there's a libgee1 now). Additionally I'd have to find a way to put a new username (the one with my sudo password) into the polkit list.