system-config-samba crashes on start time
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
system-config-samba (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: system-config-samba
Following "log" have been created:
$sudo system-config-samba
Traceback (most recent call last):
File "/usr/sbin/
mainWindow.
File "/usr/share/
self.samba_data = sambaParser.
File "/usr/share/
self.parseFile ()
File "/usr/share/
section = SambaSection (token.value)
File "/usr/share/
raise Error ("section %s already defined" % (name))
NameError: global name 'Error' is not defined
As a workaround, remove the [printers] section in your smb.conf file,
then open /usr/share/ system- config- samba/sambaPars er.py
and add before the class SambaSection line (mind the indentation!):
class Error(Exception):
pass
it will likely crash if you try to give the same name to two different shares, just don't do that.