Bug 308585 - smb4k unable to parse the smb.conf
Summary: smb4k unable to parse the smb.conf
Status: RESOLVED NOT A BUG
Alias: None
Product: unknown
Classification: Bugzilla Internals
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Reinholdt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-18 05:55 UTC by Raj Upadhyaya
Modified: 2012-10-18 08:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raj Upadhyaya 2012-10-18 05:55:15 UTC
Hello,

I wanted to test my Samba shares using smb4k.  I was unable to do so as it errors parsing the smb.conf.  It does show my mounted samba share after showing the error.

Here is my smb.conf

# Samba config file created using SWAT
# from UNKNOWN (127.0.0.1)
# Date: 2012/10/16 23:19:45

[global]
	workgroup = MSHOME
	server string = Samba Server RajHome2 Version %v
	log file = /var/log/samba/log.%m
	max log size = 50
	wins support = Yes
	idmap config * : backend = tdb
	hosts allow = 127., 192.168.1.
	cups options = raw

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	print ok = Yes
	browseable = No

[homes]
	comment = Home Directories
	valid users = %S
	read only = No
	create mask = 0700
	directory mask = 0700
	browseable = No

[public]
	comment = My Samba Share
	path = /var/public
	read only = No
	guest ok = Yes

[h]
	comment = The home directories
	path = /home
	read only = No
	guest ok = Yes
	fstype = samba

[julie]
	comment = Julie Home
	path = /home/julie
	read only = No
	guest ok = Yes
	fstype = samba

Here is the output from testparm

# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[homes]"
Processing section "[public]"
Processing section "[h]"
Processing section "[julie]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	workgroup = MSHOME
	server string = Samba Server RajHome2 Version %v
	log file = /var/log/samba/log.%m
	max log size = 50
	wins support = Yes
	idmap config * : backend = tdb
	hosts allow = 127., 192.168.1.
	cups options = raw

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	print ok = Yes
	browseable = No

[homes]
	comment = Home Directories
	valid users = %S
	read only = No
	create mask = 0700
	directory mask = 0700
	browseable = No

[public]
	comment = My Samba Share
	path = /var/public
	read only = No
	guest ok = Yes

[h]
	comment = The home directories
	path = /home
	read only = No
	guest ok = Yes
	fstype = samba

[julie]
	comment = Julie Home
	path = /home/julie
	read only = No
	guest ok = Yes
	fstype = samba

Any ideas?

Raj Upadhyaya

Reproducible: Always

Steps to Reproduce:
1.  Modify the smb.conf using swat web app
2.  Restart samba to make sure it loads ok.
3.  Start smb4k
Actual Results:  
smb4k starts, doesn't recognize the shares on either system.  Finds a share that is currently mounted.

Expected Results:  
Should find shares through explorer.

# uname -a
Linux rajhome2 3.6.2 #1 SMP Sun Oct 14 13:51:01 CDT 2012 i686 i686 i386 GNU/Linux
Comment 1 Jekyll Wu 2012-10-18 08:14:09 UTC
Sorry, smb4k is not tracked here. Try http://sourceforge.net/p/smb4k/tickets/