summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2016-06-07 10:10:41 +0200
committerAndreas Schneider <asn@cryptomilk.org>2016-06-07 10:15:38 +0200
commit81464d93926f6099e16a320a1e20ae7e07c47592 (patch)
tree22ee56f58370c942b8b20e118f6c1b9edb0357ac
parentd5e0ad50f005fdc9772b1a1e67c5f6f5c8799f3c (diff)
Use a simple default config file
-rw-r--r--samba.spec6
-rw-r--r--smb.conf.example (renamed from smb.conf.default)0
-rw-r--r--smb.conf.vendor36
3 files changed, 40 insertions, 2 deletions
diff --git a/samba.spec b/samba.spec
index efdc44c..f095d7e 100644
--- a/samba.spec
+++ b/samba.spec
@@ -99,7 +99,8 @@ Source0: samba-%{version}%{pre_release}.tar.xz
# Red Hat specific replacement-files
Source1: samba.log
Source2: samba.xinetd
-Source4: smb.conf.default
+Source3: smb.conf.vendor
+Source4: smb.conf.example
Source5: pam_winbind.conf
Source6: samba.pamd
@@ -809,7 +810,8 @@ touch %{buildroot}%{_libexecdir}/samba/cups_backend_smb
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/samba
-install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/samba/smb.conf
+install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/samba/smb.conf
+install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/samba/smb.conf.example
install -d -m 0755 %{buildroot}%{_sysconfdir}/security
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/security/pam_winbind.conf
diff --git a/smb.conf.default b/smb.conf.example
index 9c35a51..9c35a51 100644
--- a/smb.conf.default
+++ b/smb.conf.example
diff --git a/smb.conf.vendor b/smb.conf.vendor
new file mode 100644
index 0000000..ac0d0f0
--- /dev/null
+++ b/smb.conf.vendor
@@ -0,0 +1,36 @@
+# See smb.conf.example for a more detailed config file or
+# read the smb.conf manpage.
+# Run 'testparm' to verify the config is correct after
+# you modified it.
+
+[global]
+ workgroup = SAMBA
+ security = user
+
+ passdb backend = tdbsam
+
+ printing = cups
+ printcap name = cups
+ load printers = yes
+ cups options = raw
+
+[homes]
+ comment = Home Directories
+ valid users = %S, %D%w%S
+ browseable = No
+ read only = No
+ inherit acls = Yes
+
+[printers]
+ comment = All Printers
+ path = /var/tmp
+ printable = Yes
+ create mask = 0600
+ browseable = No
+
+[print$]
+ comment = Printer Drivers
+ path = /var/lib/samba/drivers
+ write list = root
+ create mask = 0664
+ directory mask = 0775