rpms/samba/devel samba.spec,1.91,1.92 smb.conf.default,1.4,1.5
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Mon Mar 26 21:11:01 UTC 2007
Author: ssorce
Update of /cvs/dist/rpms/samba/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv23755
Modified Files:
samba.spec smb.conf.default
Log Message:
move the private dir to /var/lib/samba/private
(secrets.tdb, passdb.tdb, smbpasswd)
change smb.conf.default to warn users that is really better to use
passdb backend = tdbsam
Index: samba.spec
===================================================================
RCS file: /cvs/dist/rpms/samba/devel/samba.spec,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- samba.spec 26 Mar 2007 19:11:34 -0000 1.91
+++ samba.spec 26 Mar 2007 21:10:59 -0000 1.92
@@ -3,7 +3,7 @@
Summary: The Samba SMB server.
Name: samba
Version: 3.0.24
-Release: 7%{?dist}
+Release: 8%{?dist}
Epoch: 0
License: GNU GPL Version 2
Group: System Environment/Daemons
@@ -211,7 +211,7 @@
--with-lockdir=/var/lib/samba \
--with-piddir=/var/run \
--with-mandir=%{_mandir} \
- --with-privatedir=%{_sysconfdir}/samba \
+ --with-privatedir=/var/lib/samba/private \
--with-logfilebase=/var/log/samba \
--with-libdir=%{_libdir}/samba \
--with-configdir=%{_sysconfdir}/samba \
@@ -432,6 +432,34 @@
mv -f $OLDPATH/printing $NEWPATH/ >/dev/null 2>&1
fi
+# We also moved private files from /etc/samba to
+# /var/lib/samba/private so we need to migrate these as well
+
+#secrets.tdb
+if [ -f %{_sysconfdir}/samba/secrets.tdb ]; then
+ if [ -f /var/lib/samba/private/secrets.tdb ]; then
+ mv /var/lib/samba/private/secrets.tdb /var/lib/samba/private/secrets.tdb.old
+ fi
+ mv %{_sysconfdir}/samba/secrets.tdb /var/lib/samba/private/secrets.tdb
+fi
+
+#smbpasswd
+if [ -f %{_sysconfdir}/samba/smbpasswd ]; then
+ if [ -f /var/lib/samba/private/smbpasswd ]; then
+ mv /var/lib/samba/private/smbpasswd /var/lib/samba/private/smbpasswd.old
+ fi
+ mv %{_sysconfdir}/samba/smbpasswd /var/lib/samba/private/smbpasswd
+fi
+
+#passdb.tdb
+if [ -f %{_sysconfdir}/samba/passdb.tdb ]; then
+ if [ -f /var/lib/samba/private/passdb.tdb ]; then
+ mv /var/lib/samba/private/passdb.tdb /var/lib/samba/private/passdb.tdb.old
+ fi
+ mv %{_sysconfdir}/samba/passdb.tdb /var/lib/samba/private/passdb.tdb
+fi
+
+
if [ "$1" -ge "1" ]; then
%{_initrddir}/winbind condrestart >/dev/null 2>&1
fi
@@ -536,6 +564,7 @@
%{_sbindir}/winbindd
%{_libdir}/samba/idmap
%dir /var/lib/samba
+%attr(700,root,root) %dir /var/lib/samba/private
%dir /var/run/winbindd
%attr(750,root,wbpriv) %dir /var/lib/samba/winbindd_privileged
%config(noreplace) %{_sysconfdir}/samba/smb.conf
@@ -588,9 +617,11 @@
%{_libdir}/libsmbclient.a
%changelog
-* Mon Mar 26 2007 Simo Sorce <ssorce at redhat.com>
+* Mon Mar 26 2007 Simo Sorce <ssorce at redhat.com> 3.0.24-8.fc7
- remove patch for bug 106483 as it introduces a new bug that prevents
the use of a credentials file with the smbclient tar command
+- move the samba private dir from being the same as the config dir
+ (/etc/samba) to /var/lib/samba/private
* Mon Mar 26 2007 Simo Sorce <ssorce at redhat.com> 3.0.24-7.fc7
- make winbindd start earlier in the init process, at the same time
Index: smb.conf.default
===================================================================
RCS file: /cvs/dist/rpms/samba/devel/smb.conf.default,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- smb.conf.default 20 Mar 2007 18:07:35 -0000 1.4
+++ smb.conf.default 26 Mar 2007 21:10:59 -0000 1.5
@@ -82,8 +82,13 @@
#
# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
+#
+# 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.
; security = domain
+; passdb backend = tdbsam
; realm = MY_REALM
@@ -91,6 +96,10 @@
#
# Security must be set to user for domain controllers
#
+# 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.
+#
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
@@ -106,6 +115,7 @@
# machine to add or delete corresponding unix accounts
#
; security = user
+; passdb backend = tdbsam
; domain master = yes
; domain logons = yes
More information about the fedora-cvs-commits
mailing list