From 81464d93926f6099e16a320a1e20ae7e07c47592 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 7 Jun 2016 10:10:41 +0200 Subject: [PATCH] Use a simple default config file --- samba.spec | 6 +++-- smb.conf.default => smb.conf.example | 0 smb.conf.vendor | 36 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) rename smb.conf.default => smb.conf.example (100%) create mode 100644 smb.conf.vendor 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 similarity index 100% rename from smb.conf.default rename to 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