Bug 200436 - samba system-config injects 'file://' into smb.conf
Summary: samba system-config injects 'file://' into smb.conf
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_samba (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 13:59 UTC by chapinjeff
Modified: 2009-09-26 19:55 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chapinjeff 2009-07-16 13:59:39 UTC
Version:            (using KDE 4.2.4)
OS:                Linux
Installed from:    Fedora RPMs

After using the system-config application to edit any settings in smb.conf, my smb.conf gets broken. 'file://' gets injected.

Here is an example diff:
# diff /etc/samba/smb.conf{-working,-b0rked}
89c89
< log file = /var/log/samba/log.%2525m
---
> log file = file:///var/log/samba/log.%252525m
227,230c227,230
< smb passwd file = /var/lib/samba/private/smbpasswd
< pid directory = /var/run
< lock directory = /var/lib/samba
< private dir = /var/lib/samba/private
---
> smb passwd file = file:///var/lib/samba/private/smbpasswd
> pid directory = file:///var/run
> lock directory = file:///var/lib/samba
> private dir = file:///var/lib/samba/private

This makes it so samba cannot start.
Comment 1 chapinjeff 2009-07-16 14:08:34 UTC
Jul 16 06:46:00 localhost smbd[6137]: [2009/07/16 06:46:00,  0] lib/messages_local.c:messaging_tdb_init(96)
Jul 16 06:46:00 localhost smbd[6137]:   ERROR: Failed to initialise messages database: No such file or directory
Jul 16 06:46:00 localhost smbd[6137]: [2009/07/16 06:46:00,  0] lib/messages.c:messaging_init(204)              
Jul 16 06:46:00 localhost smbd[6137]:   messaging_tdb_init failed: NT_STATUS_OBJECT_NAME_NOT_FOUND              
Jul 16 06:46:00 localhost smbd[6137]: [2009/07/16 06:46:00,  0] smbd/server.c:smbd_messaging_context(101)       
Jul 16 06:46:00 localhost smbd[6137]:   Could not init smbd messaging context.


/var/log/messages when samba wont start.
Comment 2 chapinjeff 2009-07-16 14:10:40 UTC
The Samba bug is located at:

https://bugzilla.samba.org/show_bug.cgi?id=6548
Comment 3 Christoph Feck 2009-07-16 22:08:23 UTC
SVN commit 998000 by cfeck:

Do not save local URLs in smb.conf with file:// prefix

CCBUG:200436


 M  +1 -1      dictmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=998000
Comment 4 Christoph Feck 2009-07-16 22:11:23 UTC
SVN commit 998002 by cfeck:

Do not save local URLs in smb.conf with file:// prefix (backport r998000)

Fix will be in KDE 4.3.0

Can someone who uses Samba with KDE please check if the fix solves
this bug and close it?  I do not have Samba installed to test.

CCBUG: 200436


 M  +1 -1      dictmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=998002
Comment 5 Dario Andres 2009-09-26 17:17:44 UTC
@chapinjeff@gmail.com: can you confirm this is fixed on KDE4.3.0/4.3.1 ?
Thanks
Comment 6 chapinjeff 2009-09-26 18:32:25 UTC
Confirmed resolved.

THANKS!
Comment 7 Dario Andres 2009-09-26 19:55:40 UTC
Thanks