diff --git a/shadow-useradd b/shadow-useradd new file mode 100644 index 0000000..ae81dbb --- /dev/null +++ b/shadow-useradd @@ -0,0 +1,7 @@ +# useradd defaults file +GROUP=100 +HOME=/home +INACTIVE=-1 +EXPIRE= +SHELL=/bin/bash +SKEL=/etc/skel diff --git a/shadow.spec b/shadow.spec index e8ab4ba..77a1dde 100644 --- a/shadow.spec +++ b/shadow.spec @@ -1,9 +1,10 @@ %define shadowgroupid 15 +%define mailgroupid 72 Summary: Utilities for managing shadow password files and user/group accounts Name: shadow Version: 4.11.1 Group: Applications/Security -Release: 1mamba +Release: 2mamba Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco @@ -33,7 +34,6 @@ BuildRequires: libmd-devel BuildRequires: libpam-devel BuildRequires: libselinux-devel BuildRequires: libsemanage-devel -BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: skey-devel BuildRequires: libsemanage-devel >= 3.3 @@ -177,6 +177,7 @@ if [ ! -e /etc/shadow ]; then chmod 0640 /etc/shadow chgrp shadow /etc/shadow fi +groupadd mail -g %{mailgroupid} 2>/dev/null || : : %files -f shadow.lang @@ -248,10 +249,12 @@ fi %defattr(-,root,root) %{_includedir}/shadow/subid.h %{_libdir}/libsubid.a -%{_libdir}/libsubid.la %{_libdir}/libsubid.so %changelog +* Tue Sep 06 2022 Silvan Calarco 4.11.1-2mamba +- create mail group required to useradd when creating /var/mail/ + * Sat May 07 2022 Silvan Calarco 4.11.1-1mamba - update to 4.11.1