Redhat-config-samba will crash if public is in the smb.conf Operating System: Red Hat 8.1 Beta 4 Details: Server (and Generation): All Steps to reproduce: 1) Install Red Hat 8.1 Beta 4 (grub/everything) 2) vi /etc/samba/smb.conf and go to the end of the file 3) Uncomment the example at the end of the file 4) Open a terminal and type "redhat-config-samba" and notice the error message Traceback (most recent call last): File "/usr/share/redhat-config-samba/redhat-config-samba.py", line 14, in ? mainWindow.MainWindow(debug_flag) File "/usr/share/redhat-config-samba/mainWindow.py", line 58, in __init__ self.samba_data = sambaParser.SambaParser(self) File "/usr/share/redhat-config-samba/sambaParser.py", line 24, in __init__ self.parseFile() File "/usr/share/redhat-config-samba/sambaParser.py", line 55, in parseFile token = self.createToken(line) File "/usr/share/redhat-config-samba/sambaParser.py", line 127, in createToken token = sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_KEYVAL, (name, value), self.parent) File "/usr/share/redhat-config-samba/sambaToken.py", line 20, in __init__ raise AttributeError, value AttributeError: ('public', 'no') Is the issue reproducible? yes Workaround: no "guest ok = yes" & "guest ok = no" works which replaces "public = yes" & "public = no" but their smb.conf file has examples with "public = yes" & "public = no" which might be used as a guideline for end users. ---------- Action by: Bryan.Leopard Issue Registered ISSUE TRACKER 15646, opened as sev 3.
Should be fixed with redhat-config-samba-1.0.4-1. QA, please verify.
When commenting out the public example at the bottom of the stock smb.conf file and then running redhat-config-samba, I get the following traceback error. Traceback (most recent call last): File "/usr/share/redhat-config-samba/redhat-config-samba.py", line 20, in ? mainWindow.MainWindow(debug_flag) File "/usr/share/redhat-config-samba/mainWindow.py", line 58, in __init__ self.samba_data = sambaParser.SambaParser(self) File "/usr/share/redhat-config-samba/sambaParser.py", line 24, in __init__ self.parseFile() File "/usr/share/redhat-config-samba/sambaParser.py", line 55, in parseFile token = self.createToken(line) File "/usr/share/redhat-config-samba/sambaParser.py", line 127, in createToken token = sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_KEYVAL, (name, value), self.parent) File "/usr/share/redhat-config-samba/sambaToken.py", line 20, in __init__ raise AttributeError, value AttributeError: ('only guest', 'yes') If I change it to guest only = yes then it will load fine. According to the smb.conf man page 'only guest' is a synonym to 'guest only' and should be accepted as a valid directive.
Should be fixed in redhat-config-samba-1.0.4-2, built in dist-3.0E.
There is a stack of 64 bugs that have been in Modified state for a long period of time. I am closing these as Rawhide now. If you find that the issue is not fixed, please reopen this report.