After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 135580 - Empty .smb/smb.conf
Empty .smb/smb.conf
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Module: smb
cvs (head)
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-27 10:19 UTC by Nickolay V. Shmyrev
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Nickolay V. Shmyrev 2004-02-27 10:19:17 UTC
What reason in this file created in smb-method? It overrides setting from 
system samba config /etc/samba/smb.conf. May be, there is no need in it, 
or it should be copy of system config file? 
 
For example, I have system settings for workgroup, charset, etc. All this 
settings is overridden by default samba settings, because .smb/smb.conf 
is empty.
Comment 1 Bastien Nocera 2004-02-27 11:27:17 UTC
This is needed for some versions of libsmbclient, if a system-wide
smb.conf is not present.

What libsmbclient should really be doing is merge the system-wide
smb.conf with the user-wide one, with the user-wide one overriding the
system-wide one.

File upstream as:
https://bugzilla.samba.org/show_bug.cgi?id=1133
Comment 2 Nickolay V. Shmyrev 2004-02-27 12:04:13 UTC
> This is needed for some versions of libsmbclient 
 
What versions exactly? How long should we wait for fix of new bug of 
libsmbclient, a year or two, the samba developers don't worry about 
bugs, as I know? What is the real sense to have .smb directory for 
every user. What setting do you mean to override in user config? 
 
Maybe, just add smb.conf presence or correct version for dependency 
of smb-module, remove .smb/smb.conf and feel happy? 
Comment 3 Ricardo Erbano 2004-06-14 20:46:38 UTC
> This is needed for some versions of libsmbclient, if a system-wide
> smb.conf is not present.

But, currently, the gnome-vfs code doesn't check for a system-wide smb.conf. It
just checks for ~/.smb/smb.conf and, if not present, creates it, empty.

This creates a whole lot of different problems. *ALL* samba configuration
parameters are overwritten with default values in this case, as you already know
it seems. And this will affect other applications, not just gnome, since it's a
libsmbclient "feature".

I would suggest this part of the code to be removed, that is, do not create a
~/.smb/smb.conf file at all.
Comment 4 Alexander Larsson 2004-08-25 14:59:48 UTC
Its not created in HEAD.