Compare commits
79 Commits
Author | SHA256 | Date | |
---|---|---|---|
9e97675dd6 | |||
f0c01efe97 | |||
d21b1a92fd | |||
7402f46d48 | |||
5b1dcf98f8 | |||
6c30dc589e | |||
a29e1bbb09 | |||
257435732c | |||
e765a82da8 | |||
c8a5d4c2c3 | |||
4634ce8b7b | |||
1659bb605c | |||
59e0fd5c32 | |||
f65af60bd0 | |||
e08d9969be | |||
5d2241cf4b | |||
|
d616ae8715 | ||
ebde9e16d5 | |||
64a8100b7f | |||
7b0445fed0 | |||
8dd62cbe5d | |||
3e2258c0d7 | |||
54d42d4e15 | |||
d202e8b28a | |||
0ff0f8f44c | |||
89777a50d7 | |||
a0baccd19a | |||
f7b5ce5d12 | |||
e0c12bc0cf | |||
1ff678792f | |||
0365362bb0 | |||
5dc1a55a5e | |||
2bd0a87e4b | |||
9282019b03 | |||
d80072ee8a | |||
eb205050c2 | |||
6772182896 | |||
b0f7a84a97 | |||
32ecc18672 | |||
199342982e | |||
a3cd2c3cc9 | |||
fc73ebc987 | |||
fe11d6805f | |||
2ea9274f25 | |||
bc0987f633 | |||
be043916fe | |||
3e87c79958 | |||
06d96593d6 | |||
87b693b40b | |||
3e3e1511d0 | |||
e1d5b824b9 | |||
73b7bf1c9b | |||
3de1a0fc5b | |||
86b9cb9032 | |||
c66194d537 | |||
a5a4a70f14 | |||
81aac1eae8 | |||
1be9596ae6 | |||
2a7db287be | |||
73b672ea93 | |||
94ecb5f73c | |||
8002a1e16a | |||
69e47750b5 | |||
533b889926 | |||
d7b06a20f7 | |||
db5fa1eafe | |||
21e0ccd10f | |||
39c4be5109 | |||
4e0bce7a91 | |||
007a3931a0 | |||
e1f1ee534c | |||
dbda3bc769 | |||
208027cd7e | |||
b1d31ba6c9 | |||
dff4632ab2 | |||
f60c0e187f | |||
733cdba213 | |||
9c150bfc0d | |||
612b56b22d |
@@ -1,4 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g bin 1
|
u! bin 1 bin /bin
|
||||||
m daemon bin
|
|
||||||
u bin 1 bin /bin
|
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g daemon 2
|
u! daemon 2 Daemon /sbin
|
||||||
u daemon 2 Daemon /sbin
|
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u ftp - "FTP Account" /srv/ftp
|
u! ftp - "FTP Account" /srv/ftp
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u games - "Games account" /var/games
|
u! games - "Games account" /var/games
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u lp - "Printing daemon" /var/spool/lpd
|
u! lp - "Printing daemon" /var/spool/lpd
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u mail - "Mailer daemon" /var/spool/clientmqueue
|
u! mail - "Mailer daemon" /var/spool/clientmqueue
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g man 62
|
g man 62
|
||||||
u man 13 "Manual pages viewer" /var/lib/empty
|
u! man 13 "Manual pages viewer" /var/lib/empty
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u news - "News system" /etc/news
|
u! news - "News system" /etc/news
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g nogroup 65533
|
g nogroup 65533
|
||||||
g nobody 65534
|
u! nobody 65534 "nobody" /var/lib/nobody -
|
||||||
u nobody 65534 "nobody" /var/lib/nobody -
|
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u ntp - "NTP account" /var/lib/ntp
|
u! ntp - "NTP account" /var/lib/ntp
|
||||||
|
@@ -1,4 +1,3 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g qemu 107
|
u! qemu 107 "qemu user"
|
||||||
u qemu 107 "qemu user"
|
|
||||||
m qemu kvm
|
m qemu kvm
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u tftp - "TFTP Account" /srv/tftpboot
|
u! tftp - "TFTP Account" /srv/tftpboot
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u tss 98 "TSS daemon" /var/lib/tpm
|
u! tss 98 "TSS daemon" /var/lib/tpm
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u upsd - "UPS daemon" /var/lib/empty
|
u! upsd - "UPS daemon" /var/lib/empty
|
||||||
m upsd daemon
|
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u uucp - "Unix-to-Unix CoPy system" /etc/uucp
|
u! uucp - "Unix-to-Unix CoPy system" /etc/uucp
|
||||||
m uucp lock
|
m uucp lock
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
u uuidd - "User for uuidd" /var/run/uuidd
|
u! uuidd - "User for uuidd" /var/run/uuidd
|
||||||
|
@@ -1,3 +1,2 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g vscan 65 - -
|
u! vscan 65 "Vscan account" /var/spool/amavis
|
||||||
u vscan 65 "Vscan account" /var/spool/amavis
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g www -
|
g www -
|
||||||
u wwwrun - "WWW daemon apache" /var/lib/wwwrun
|
u! wwwrun - "WWW daemon apache" /var/lib/wwwrun
|
||||||
m wwwrun www
|
m wwwrun www
|
||||||
|
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Aug 25 09:01:05 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Remove old and now implicit %defattr lines
|
||||||
|
- Use noun phrase for descriptions
|
||||||
|
- Reduce calls to mkdir
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 22 14:27:27 UTC 2025 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- Use fully locked user accounts
|
||||||
|
- Remove daemon as second group
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 12 09:31:26 UTC 2025 - Thorsten Kukuk <kukuk@suse.com>
|
Wed Mar 12 09:31:26 UTC 2025 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package system-users
|
# spec file for package system-users
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: system-users
|
Name: system-users
|
||||||
Version: 20170617
|
Version: 20250822
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Provide system accounts
|
Summary: Provider for system accounts
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: System/Fhs
|
Group: System/Fhs
|
||||||
Source1: system-user-uucp.conf
|
Source1: system-user-uucp.conf
|
||||||
@@ -54,9 +54,7 @@ This package provides various system users and their directories
|
|||||||
|
|
||||||
%package -n system-user-bin
|
%package -n system-user-bin
|
||||||
Summary: System user and group 'bin'
|
Summary: System user and group 'bin'
|
||||||
#!BuildIgnore: user(daemon)
|
|
||||||
Group: System/Fhs
|
Group: System/Fhs
|
||||||
Requires(pre): user(daemon)
|
|
||||||
%{sysusers_requires}
|
%{sysusers_requires}
|
||||||
|
|
||||||
%description -n system-user-bin
|
%description -n system-user-bin
|
||||||
@@ -178,9 +176,7 @@ This package provides the system account and group 'nobody'.
|
|||||||
|
|
||||||
%package -n system-user-upsd
|
%package -n system-user-upsd
|
||||||
Summary: System user upsd
|
Summary: System user upsd
|
||||||
#!BuildIgnore: group(daemon)
|
|
||||||
Group: System/Fhs
|
Group: System/Fhs
|
||||||
Requires(pre): group(daemon)
|
|
||||||
%{sysusers_requires}
|
%{sysusers_requires}
|
||||||
|
|
||||||
%description -n system-user-upsd
|
%description -n system-user-upsd
|
||||||
@@ -252,7 +248,7 @@ Group: System/Fhs
|
|||||||
This package provides the system user and group 'ntp'.
|
This package provides the system user and group 'ntp'.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%autosetup -c
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%sysusers_generate_pre %{SOURCE1} uucp system-user-uucp.conf
|
%sysusers_generate_pre %{SOURCE1} uucp system-user-uucp.conf
|
||||||
@@ -280,20 +276,21 @@ This package provides the system user and group 'ntp'.
|
|||||||
%sysusers_generate_pre %{SOURCE25} ntp system-user-ntp.conf
|
%sysusers_generate_pre %{SOURCE25} ntp system-user-ntp.conf
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sysusersdir}
|
mkdir -pv \
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/uucp
|
%{buildroot}%{_sysusersdir} \
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/news
|
%{buildroot}%{_sysconfdir}/uucp \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/games
|
%{buildroot}%{_sysconfdir}/news \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/ntp
|
%{buildroot}%{_localstatedir}/games \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/wwwrun
|
%{buildroot}%{_localstatedir}/lib/ntp \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/spool/amavis
|
%{buildroot}%{_localstatedir}/lib/wwwrun \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/spool/clientmqueue
|
%{buildroot}%{_localstatedir}/spool/amavis \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/spool/lpd
|
%{buildroot}%{_localstatedir}/spool/clientmqueue \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/run/uuidd
|
%{buildroot}%{_localstatedir}/spool/lpd \
|
||||||
mkdir -p %{buildroot}/srv/ftp
|
%{buildroot}%{_localstatedir}/run/uuidd \
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/nobody
|
%{buildroot}/srv/ftp \
|
||||||
mkdir -p %{buildroot}/srv/tftpboot
|
%{buildroot}%{_localstatedir}/lib/nobody \
|
||||||
mkdir -p %{buildroot}/var/lib/tpm
|
%{buildroot}/srv/tftpboot \
|
||||||
|
%{buildroot}/var/lib/tpm
|
||||||
install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-uucp.conf
|
install -m 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/system-user-uucp.conf
|
||||||
install -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-games.conf
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/system-user-games.conf
|
||||||
install -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bin.conf
|
install -m 644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bin.conf
|
||||||
@@ -365,106 +362,83 @@ install -m 644 %{SOURCE25} %{buildroot}%{_sysusersdir}/system-user-ntp.conf
|
|||||||
%pre -n system-user-ntp -f ntp.pre
|
%pre -n system-user-ntp -f ntp.pre
|
||||||
|
|
||||||
%files -n system-user-uucp
|
%files -n system-user-uucp
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0750,uucp,uucp) %{_sysconfdir}/uucp
|
%dir %attr(0750,uucp,uucp) %{_sysconfdir}/uucp
|
||||||
%{_sysusersdir}/system-user-uucp.conf
|
%{_sysusersdir}/system-user-uucp.conf
|
||||||
|
|
||||||
%files -n system-user-games
|
%files -n system-user-games
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0755,root,root) %{_localstatedir}/games
|
%dir %attr(0755,root,root) %{_localstatedir}/games
|
||||||
%{_sysusersdir}/system-user-games.conf
|
%{_sysusersdir}/system-user-games.conf
|
||||||
|
|
||||||
%files -n system-user-bin
|
%files -n system-user-bin
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-user-bin.conf
|
%{_sysusersdir}/system-user-bin.conf
|
||||||
|
|
||||||
%files -n system-user-daemon
|
%files -n system-user-daemon
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-user-daemon.conf
|
%{_sysusersdir}/system-user-daemon.conf
|
||||||
|
|
||||||
%files -n system-user-man
|
%files -n system-user-man
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-user-man.conf
|
%{_sysusersdir}/system-user-man.conf
|
||||||
|
|
||||||
%files -n system-user-news
|
%files -n system-user-news
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0750,news,news) %{_sysconfdir}/news
|
%dir %attr(0750,news,news) %{_sysconfdir}/news
|
||||||
%{_sysusersdir}/system-user-news.conf
|
%{_sysusersdir}/system-user-news.conf
|
||||||
|
|
||||||
%files -n system-group-obsolete
|
%files -n system-group-obsolete
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-group-obsolete.conf
|
%{_sysusersdir}/system-group-obsolete.conf
|
||||||
|
|
||||||
%files -n system-group-hardware
|
%files -n system-group-hardware
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-group-hardware.conf
|
%{_sysusersdir}/system-group-hardware.conf
|
||||||
|
|
||||||
%files -n system-group-wheel
|
%files -n system-group-wheel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-group-wheel.conf
|
%{_sysusersdir}/system-group-wheel.conf
|
||||||
|
|
||||||
%files -n system-user-wwwrun
|
%files -n system-user-wwwrun
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0755,wwwrun,root) %{_localstatedir}/lib/wwwrun
|
%dir %attr(0755,wwwrun,root) %{_localstatedir}/lib/wwwrun
|
||||||
%{_sysusersdir}/system-user-wwwrun.conf
|
%{_sysusersdir}/system-user-wwwrun.conf
|
||||||
|
|
||||||
%files -n system-user-mail
|
%files -n system-user-mail
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0770,mail,mail) %{_localstatedir}/spool/clientmqueue
|
%dir %attr(0770,mail,mail) %{_localstatedir}/spool/clientmqueue
|
||||||
%{_sysusersdir}/system-user-mail.conf
|
%{_sysusersdir}/system-user-mail.conf
|
||||||
|
|
||||||
%files -n system-user-ftp
|
%files -n system-user-ftp
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0755,root,root) /srv/ftp
|
%dir %attr(0755,root,root) /srv/ftp
|
||||||
%{_sysusersdir}/system-user-ftp.conf
|
%{_sysusersdir}/system-user-ftp.conf
|
||||||
|
|
||||||
%files -n system-user-lp
|
%files -n system-user-lp
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0755,lp,lp) %{_localstatedir}/spool/lpd
|
%dir %attr(0755,lp,lp) %{_localstatedir}/spool/lpd
|
||||||
%{_sysusersdir}/system-user-lp.conf
|
%{_sysusersdir}/system-user-lp.conf
|
||||||
|
|
||||||
%files -n system-user-nobody
|
%files -n system-user-nobody
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0755,nobody,root) %{_localstatedir}/lib/nobody
|
%dir %attr(0755,nobody,root) %{_localstatedir}/lib/nobody
|
||||||
%{_sysusersdir}/system-user-nobody.conf
|
%{_sysusersdir}/system-user-nobody.conf
|
||||||
|
|
||||||
%files -n system-user-upsd
|
%files -n system-user-upsd
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-user-upsd.conf
|
%{_sysusersdir}/system-user-upsd.conf
|
||||||
|
|
||||||
%files -n system-user-uuidd
|
%files -n system-user-uuidd
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-user-uuidd.conf
|
%{_sysusersdir}/system-user-uuidd.conf
|
||||||
|
|
||||||
%files -n system-user-tftp
|
%files -n system-user-tftp
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0755,tftp,tftp) /srv/tftpboot
|
%dir %attr(0755,tftp,tftp) /srv/tftpboot
|
||||||
%{_sysusersdir}/system-user-tftp.conf
|
%{_sysusersdir}/system-user-tftp.conf
|
||||||
|
|
||||||
%files -n system-user-tss
|
%files -n system-user-tss
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0750,tss,tss) /var/lib/tpm
|
%dir %attr(0750,tss,tss) /var/lib/tpm
|
||||||
%{_sysusersdir}/system-user-tss.conf
|
%{_sysusersdir}/system-user-tss.conf
|
||||||
|
|
||||||
%files -n system-group-kvm
|
%files -n system-group-kvm
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-group-kvm.conf
|
%{_sysusersdir}/system-group-kvm.conf
|
||||||
|
|
||||||
%files -n system-user-qemu
|
%files -n system-user-qemu
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-user-qemu.conf
|
%{_sysusersdir}/system-user-qemu.conf
|
||||||
|
|
||||||
%files -n system-group-libvirt
|
%files -n system-group-libvirt
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_sysusersdir}/system-group-libvirt.conf
|
%{_sysusersdir}/system-group-libvirt.conf
|
||||||
|
|
||||||
%files -n system-user-vscan
|
%files -n system-user-vscan
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0750,vscan,vscan) %{_localstatedir}/spool/amavis
|
%dir %attr(0750,vscan,vscan) %{_localstatedir}/spool/amavis
|
||||||
%{_sysusersdir}/system-user-vscan.conf
|
%{_sysusersdir}/system-user-vscan.conf
|
||||||
|
|
||||||
%files -n system-user-ntp
|
%files -n system-user-ntp
|
||||||
%defattr(-,root,root)
|
|
||||||
%dir %attr(0755,root,root) %{_localstatedir}/lib/ntp
|
%dir %attr(0755,root,root) %{_localstatedir}/lib/ntp
|
||||||
%{_sysusersdir}/system-user-ntp.conf
|
%{_sysusersdir}/system-user-ntp.conf
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user