GNOME Bugzilla – Bug 135580
Empty .smb/smb.conf
Last modified: 2004-12-22 21:47:04 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.
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
> 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?
> 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.
Its not created in HEAD.