Red Hat Bugzilla – Bug 155616
system-config-samba doesn't gracefully handle syntax errors in smb.conf
Last modified: 2008-08-14 11:22:34 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Description of problem:
When you go to:
system settings > server settings > click on samba
It asks you for the root password and then just hangs afterwards.
Version-Release number of selected component (if applicable):
system-config-samba-1.2.21-1 and python-2.3.4-11
Steps to Reproduce:
3.click on samba
4.enter root password
Actual Results: nothing comes up
Expected Results: samba configuration tool to load up.
when system-config-samba is run from a terminal; it errors with:
" File "/usr/share/system-config-samba/sambaToken.py", line 36, in __init__
raise AttributeError, value
AttributeError: ('192.168.0.3', '') "
Problem is solved by removing my smb.conf and then making another.
Created attachment 113489 [details]
my old smb.conf
This is the config file that the problem happens under
Created attachment 113490 [details]
The fixed version of smb.conf
Once i had changed it to this smb.conf the problem was resolved
Your original smb.conf contains IP addresses on their own lines, these must be
on one line with the "host allow" parameter. I plan to change s-c-samba so that
it gives a suitable warning in that case.
Current system-config-samba-1.2.63-1.fc9.noarch gives such a warning and doesn't hang.