Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 115776

Summary: system-config-samba crashes when running from shell
Product: [Fedora] Fedora Reporter: Eric N. Ebert <techs_21>
Component: system-config-sambaAssignee: Brent Fox <bfox>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-02-20 02:56:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 114961    
Attachments:
Description Flags
/etc/samba/smb.conf none

Description Eric N. Ebert 2004-02-16 00:22:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.2; Linux) (KHTML, like Gecko)

Description of problem:
When running system-config-samba from the shell it gives the output listed below. system-config-samba does nothing when selected from the menu. 

Applications --> System Settings --> Server Settings --> Samba

Version-Release number of selected component (if applicable):
system-config-samba-1.2.2-1

How reproducible:
Always

Steps to Reproduce:
1.Open shell
2.run /usr/bin/system-config-samba
3.
    

Actual Results:  Program gave output noted below

Expected Results:  Should be able to get a samba configuration window

Additional info:

** (system-config-samba.py:1795): WARNING **: `GtkTextSearchFlags' is not an enum type
Traceback (most recent call last):
  File "/usr/share/system-config-samba/system-config-samba.py", line 38, in ?
    mainWindow.MainWindow(debug_flag)
  File "/usr/share/system-config-samba/mainWindow.py", line 75, in __init__
    self.samba_data = sambaParser.SambaParser(self)
  File "/usr/share/system-config-samba/sambaParser.py", line 40, in __init__
    self.parseFile()
  File "/usr/share/system-config-samba/sambaParser.py", line 71, in parseFile
    token = self.createToken(line)
  File "/usr/share/system-config-samba/sambaParser.py", line 143, in createToken
    token = sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_KEYVAL, (name, value), self.parent)
  File "/usr/share/system-config-samba/sambaToken.py", line 36, in __init__
    raise AttributeError, value
AttributeError: ('comments', 'All Printers')

Comment 1 Brent Fox 2004-02-17 17:50:38 UTC
Can you attach your /etc/samba/smb.conf file?

Comment 2 Eric N. Ebert 2004-02-17 21:42:19 UTC
Created attachment 97767 [details]
/etc/samba/smb.conf

Comment 3 Brent Fox 2004-02-20 02:56:42 UTC
There are a number of problems with your smb.conf file.

In the [printers] section, the line:	
comments = All Printers
is invalid.  The keyword should be "comment", not "comments".  This
line is causing the crash.

Also, in the [proj] section, you have the lines:
public = yes
and
guest ok = yes

According to 'man smb.conf', "public" and "guest ok" are synonyms. 
Having both of them in the same section is redundant and could
possibly cause samba to get confused, especially if they were set to
different values.  Fortunately they are both set to "yes" in this case.