Since 7.0 will break a lot of things for FHS, I suggest you break one more
thing and consider creating /etc/samba directory.
Right now we have in /etc: smb.conf, lmhost, codepages/, smbusers,
If you use encrypted password there is the smbpasswd file.
If you use the printer downloading feature for win9x machines you have to
decide where to put the printers.def file.
Then, if someone need to use the include directive in smb.conf, there are
Then, with the next samba versions, very likely we'll have other
maps/files to handle the new nt stuff.
I think there's no reason to clutter /etc with so many files from one
Once I talked about this on the samba list, and the only problem was "all
are used to /etc/smb.conf, so you'll break things".
If you do this you'll have to adjust the default smb.conf file accordingly
(all /etc examples to /etc/samba):
; smb passwd file = /etc/smbpasswd
; username map = /etc/smbusers
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /etc/smb.conf.%m
Not too bad of an idea.
This has been done as of samba-2.0.7-16. Thanks for the suggestion!
I installed beta4 samba on beta3.
Thanks for the /etc -> /etc/samba!
There are a few remaining problems I had not foreseen:
1) init script exits if it does not find /etc/smb.conf
# Check that smb.conf exists.
[ -f /etc/smb.conf ] || exit 0
2) Maybe you should print a warning in postun to tell about /etc -> /etc/samba
switch, ie.: tell users to consider copying /etc/smb.conf.rpmsave
to /etc/smb.conf after having checked it for /etc -> /etc/samba problems
(smbpasswd = /etc/smbpasswd ..).
Fixed in -17; we'll document the switch elsewhere (release notes, most