Use a simple default config file
This commit is contained in:
parent
d5e0ad50f0
commit
81464d9392
@ -99,7 +99,8 @@ Source0: samba-%{version}%{pre_release}.tar.xz
|
|||||||
# Red Hat specific replacement-files
|
# Red Hat specific replacement-files
|
||||||
Source1: samba.log
|
Source1: samba.log
|
||||||
Source2: samba.xinetd
|
Source2: samba.xinetd
|
||||||
Source4: smb.conf.default
|
Source3: smb.conf.vendor
|
||||||
|
Source4: smb.conf.example
|
||||||
Source5: pam_winbind.conf
|
Source5: pam_winbind.conf
|
||||||
Source6: samba.pamd
|
Source6: samba.pamd
|
||||||
|
|
||||||
@ -809,7 +810,8 @@ touch %{buildroot}%{_libexecdir}/samba/cups_backend_smb
|
|||||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
|
||||||
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/samba
|
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 -d -m 0755 %{buildroot}%{_sysconfdir}/security
|
||||||
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/security/pam_winbind.conf
|
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/security/pam_winbind.conf
|
||||||
|
36
smb.conf.vendor
Normal file
36
smb.conf.vendor
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user