Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352869 - net-fs/samba-3.5.6: improve smb.conf.default
Summary: net-fs/samba-3.5.6: improve smb.conf.default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-26 22:43 UTC by Martin Mokrejš
Modified: 2011-06-29 17:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2011-01-26 22:43:17 UTC
It took me a while to realize that samba now stores passwords in a newer database. The doc lines in the config file just fooled me and I had to figure out what and how to do. I propose the below improvements of the doc lines of "{FILESDIR}"/3.[45]/smb.conf.default

@@ -81,8 +86,10 @@
 
 # Backend to store user information in. New installations should 
 # use either tdbsam or ldapsam. smbpasswd is available for backwards 
-# compatibility. tdbsam requires no further configuration.
-;   passdb backend = tdbsam
+# compatibility. tdbsam requires no further configuration but you have
+# to convert your old user passwords to the new file with
+# pdbedit -i smbpasswd:/var/lib/samba/private/smbpasswd -e tdbsam:/var/lib/samba/private/passdb.tdb
+   passdb backend = tdbsam
Comment 1 Víctor Ostorga (RETIRED) gentoo-dev 2011-01-28 14:13:45 UTC
Have you read the messages displayed after installing samba?

*** This bug has been marked as a duplicate of bug 288752 ***
Comment 2 Martin Mokrejš 2011-01-31 11:31:19 UTC
(In reply to comment #1)
> Have you read the messages displayed after installing samba?

Yes but I did not learn anything from that. I even re-read now the two pages mentioned in pkg_postinst() and still, it wouldn't help me. Please improve the template config file, and feel free to place a note about this and the other bug #288752 in the comment lines. This is much more helpful than closing as duplicate. I agree that manpages for smb.conf are useless in this regard as well.
Comment 3 Víctor Ostorga (RETIRED) gentoo-dev 2011-01-31 17:57:00 UTC
This is the elog message after installing the stable version of samba
 
 * The default passdb backend has been changed to 'tdbsam' in samba 3.4!
 * That breaks existing setups using the 'smbpasswd' backend without
 * explicit declaration!
 * Please use 'passdb backend = smbpasswd' if you would like to stick to the
 * 'smbpasswd' backend or convert your smbpasswd entries using e.g. 
 * 'pdbedit -i smbpasswd -e tdbsam'.
 * For further information make sure to read the release notes at
 * http://samba.org/samba/history/samba-3.4.9.html and 
 * http://samba.org/samba/history/samba-3.4.0.html

Why do you need the same thing to be repeated in smb.conf ?
Comment 4 Martin Mokrejš 2011-01-31 18:52:26 UTC
Because if you install the whole system and then realize you want to get to configuring the application you might realize you have no elogs anymore, or you forget about them, and anyways you glance into its config files and manpages. Therefore, placing this information right there is more helpful. In my case I had to use strace to figure out where are the files located as well, something your elog does not provide me with.
Comment 5 Víctor Ostorga (RETIRED) gentoo-dev 2011-06-29 17:52:12 UTC
Making users happy in samba 3.5.9 :)