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:
parent
6919de885b
commit
0a236705d8
7
shadow-useradd
Normal file
7
shadow-useradd
Normal file
@ -0,0 +1,7 @@
|
||||
# useradd defaults file
|
||||
GROUP=100
|
||||
HOME=/home
|
||||
INACTIVE=-1
|
||||
EXPIRE=
|
||||
SHELL=/bin/bash
|
||||
SKEL=/etc/skel
|
@ -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 <silvan.calarco@mambasoft.it>
|
||||
@ -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 <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
|
||||
- update to 4.11.1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user