create mail group required to useradd when creating /var/mail/<user> [release 4.11.1-2mamba;Tue Sep 06 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 17:46:23 +01:00
parent 6919de885b
commit 0a236705d8
2 changed files with 13 additions and 3 deletions

7
shadow-useradd Normal file
View File

@ -0,0 +1,7 @@
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel

View File

@ -1,9 +1,10 @@
%define shadowgroupid 15 %define shadowgroupid 15
%define mailgroupid 72
Summary: Utilities for managing shadow password files and user/group accounts Summary: Utilities for managing shadow password files and user/group accounts
Name: shadow Name: shadow
Version: 4.11.1 Version: 4.11.1
Group: Applications/Security Group: Applications/Security
Release: 1mamba Release: 2mamba
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
@ -33,7 +34,6 @@ BuildRequires: libmd-devel
BuildRequires: libpam-devel BuildRequires: libpam-devel
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: libsemanage-devel BuildRequires: libsemanage-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: skey-devel BuildRequires: skey-devel
BuildRequires: libsemanage-devel >= 3.3 BuildRequires: libsemanage-devel >= 3.3
@ -177,6 +177,7 @@ if [ ! -e /etc/shadow ]; then
chmod 0640 /etc/shadow chmod 0640 /etc/shadow
chgrp shadow /etc/shadow chgrp shadow /etc/shadow
fi fi
groupadd mail -g %{mailgroupid} 2>/dev/null || :
: :
%files -f shadow.lang %files -f shadow.lang
@ -248,10 +249,12 @@ fi
%defattr(-,root,root) %defattr(-,root,root)
%{_includedir}/shadow/subid.h %{_includedir}/shadow/subid.h
%{_libdir}/libsubid.a %{_libdir}/libsubid.a
%{_libdir}/libsubid.la
%{_libdir}/libsubid.so %{_libdir}/libsubid.so
%changelog %changelog
* Tue Sep 06 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.1-2mamba
- create mail group required to useradd when creating /var/mail/<user>
* Sat May 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.1-1mamba * Sat May 07 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.11.1-1mamba
- update to 4.11.1 - update to 4.11.1