authtool-gtk crashed with DebconfError in command()

Bug #193915 reported by Vojtěch Látal
58
Affects Status Importance Assigned to Milestone
Network Authentication Configuration
Fix Committed
Undecided
Unassigned
authtool (Ubuntu)
Fix Committed
Medium
Unassigned

Bug Description

Binary package hint: authtool

Just started authtool-gtk from command line.
When started without sudo it outputs:
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
...and traceback

When started with sudo it outputs the same except the line with 'Permission denied':
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
...and traceback

The error doesn't appear with sudo. But maybe the app should output something like 'Sorry, this app needs to be run as root'.

ProblemType: Crash
Architecture: i386
Date: Thu Feb 21 09:55:25 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/authtool-gtk
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: video
Package: authtool-gtk 0.2.0
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/authtool-gtk
ProcCwd: /tmp/purple-plugin_pack-2.2.0
PythonArgs: ['/usr/bin/authtool-gtk']
SourcePackage: authtool
Title: authtool-gtk crashed with DebconfError in command()
Uname: Linux ntb 2.6.24-8-generic #1 SMP Thu Feb 14 20:40:45 UTC 2008 i686 GNU/Linux
UserGroups: pulse

Tags: apport-crash
Revision history for this message
Vojtěch Látal (vojtik) wrote :
Revision history for this message
Frederic Lietart (thelinuxfr) wrote :

+1

Revision history for this message
Pablo Catalina (xkill) wrote :

Try to run with gksu or sudo, it's an administrative tool, so you need root privileges to run that.

Revision history for this message
Vojtěch Látal (vojtik) wrote :

Pablo, I've written that I also tried to run with sudo. But it didn't helped.

Pablo Catalina (xkill)
description: updated
Revision history for this message
Pablo Catalina (xkill) wrote :

When I execute authtool-gtk:

xkill@nopaper:~$ authtool-gtk
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permiso denegado
Traceback (most recent call last):
  File "/usr/bin/authtool-gtk", line 552, in <module>
    app = AuthtoolGTK()
  File "/usr/bin/authtool-gtk", line 41, in __init__
    self.authtools = Authtools()
  File "/var/lib/python-support/python2.5/AuthTool/authtools.py", line 264, in __init__
    self.method_cfgs[method] = obj(self.cfg)
  File "/usr/share/authtool/auth_methods/kerberos/kerberos.py", line 50, in __init__
    default_realm = self.db.get('krb5-config/default_realm')
  File "/var/lib/python-support/python2.5/AuthTool/authtools.py", line 192, in get
    return self.db.get(item)
  File "/usr/lib/python2.5/site-packages/debconf.py", line 60, in <lambda>
    lambda *args, **kw: self.command(command, *args, **kw))
  File "/usr/lib/python2.5/site-packages/debconf.py", line 96, in command
    raise DebconfError(status, data)
debconf.DebconfError: (10, "krb5-config/default_realm doesn't exist")

So I tried with sudo:

xkill@nopaper:~$ sudo authtool-gtk
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
Traceback (most recent call last):
  File "/usr/bin/authtool-gtk", line 552, in <module>
    app = AuthtoolGTK()
  File "/usr/bin/authtool-gtk", line 41, in __init__
    self.authtools = Authtools()
  File "/var/lib/python-support/python2.5/AuthTool/authtools.py", line 264, in __init__
    self.method_cfgs[method] = obj(self.cfg)
  File "/usr/share/authtool/auth_methods/kerberos/kerberos.py", line 50, in __init__
    default_realm = self.db.get('krb5-config/default_realm')
  File "/var/lib/python-support/python2.5/AuthTool/authtools.py", line 192, in get
    return self.db.get(item)
  File "/usr/lib/python2.5/site-packages/debconf.py", line 60, in <lambda>
    lambda *args, **kw: self.command(command, *args, **kw))
  File "/usr/lib/python2.5/site-packages/debconf.py", line 96, in command
    raise DebconfError(status, data)
debconf.DebconfError: (10, "krb5-config/default_realm doesn't exist")

Later I installed krb5-clients:
sudo apt-get install krb5-clients

And it works OK with sudo, but without sudo it doesn't work.

There are two problems:

1) Package Dependencies -> krb5-clients
2) authtool-gtk -> Must be run with UID=0 (like sudo, gksu or something else)

Changed in network-authentication:
status: New → Fix Committed
Changed in authtool:
status: New → Fix Committed
Revision history for this message
Blaster (holst-niels) wrote :

+1

Changed in authtool (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.