From 1d473a53688311a6666878434ca6a36a83701b35 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 31 Jul 2017 12:14:15 +0200 Subject: [PATCH] Give 'printadmin' access to the printer driver directory --- samba.spec | 9 ++++++--- smb.conf.vendor | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/samba.spec b/samba.spec index f267a6e..1c6f183 100644 --- a/samba.spec +++ b/samba.spec @@ -6,7 +6,7 @@ # ctdb is enabled by default, you can disable it with: --without clustering %bcond_without clustering -%define main_release 8 +%define main_release 9 %define samba_version 4.7.0 %define talloc_version 2.1.9 @@ -85,7 +85,7 @@ Name: samba Version: %{samba_version} -Release: %{samba_release}.3 +Release: %{samba_release} %if 0%{?rhel} Epoch: 0 @@ -1323,7 +1323,7 @@ rm -rf %{buildroot} %exclude %{_mandir}/man8/vfs_ceph.8* %endif -%dir /var/lib/samba/drivers +%attr(775,root,printadmin) %dir /var/lib/samba/drivers %dir /var/lib/samba/lock ### CLIENT @@ -3327,6 +3327,9 @@ rm -rf %{buildroot} %endif # with_clustering_support %changelog +* Tue Aug 08 2017 Andreas Schneider - 4.7.0-0.9.rc3 +- Add printadmin group for printer driver handling + * Sun Jul 30 2017 Florian Weimer - 2:4.7.0-0.8.rc3.2 - Rebuild with binutils fix for ppc64le (#1475636) diff --git a/smb.conf.vendor b/smb.conf.vendor index 86c0aac..fe3f806 100644 --- a/smb.conf.vendor +++ b/smb.conf.vendor @@ -31,6 +31,7 @@ [print$] comment = Printer Drivers path = /var/lib/samba/drivers - write list = root + write list = @printadmin root + force group = @printadmin create mask = 0664 directory mask = 0775