Accepting request 480636 from home:kukuk:sysusers
- Add group sys to system-group-obsolete - Add systemusers lp and nobody OBS-URL: https://build.opensuse.org/request/show/480636 OBS-URL: https://build.opensuse.org/package/show/Base:System/system-users?expand=0&rev=8
This commit is contained in:
parent
208027cd7e
commit
dbda3bc769
@ -1,6 +1,7 @@
|
|||||||
# Type Name ID GECOS [HOME]
|
# Type Name ID GECOS [HOME]
|
||||||
g xok -
|
g sys -
|
||||||
g floppy -
|
g floppy -
|
||||||
g modem -
|
g modem -
|
||||||
g public -
|
g public -
|
||||||
g console -
|
g console -
|
||||||
|
g xok -
|
||||||
|
3
system-user-lp.conf
Normal file
3
system-user-lp.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Type Name ID GECOS [HOME]
|
||||||
|
u lp - "Printing daemon" /var/spool/lpd
|
||||||
|
g lp -
|
5
system-user-nobody.conf
Normal file
5
system-user-nobody.conf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Type Name ID GECOS [HOME]
|
||||||
|
g nogroup 65533
|
||||||
|
g nobody 65534
|
||||||
|
u nobody 65534 "nobody" /var/lib/nobody
|
||||||
|
m nobody nogroup
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 15 22:48:01 CET 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
- Add group sys to system-group-obsolete
|
||||||
|
- Add systemusers lp and nobody
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 15 20:47:27 CET 2017 - kukuk@suse.de
|
Wed Mar 15 20:47:27 CET 2017 - kukuk@suse.de
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ Source10: system-group-wheel.conf
|
|||||||
Source11: system-user-wwwrun.conf
|
Source11: system-user-wwwrun.conf
|
||||||
Source12: system-user-mail.conf
|
Source12: system-user-mail.conf
|
||||||
Source13: system-user-ftp.conf
|
Source13: system-user-ftp.conf
|
||||||
|
Source14: system-user-lp.conf
|
||||||
|
Source15: system-user-nobody.conf
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: sysuser-tools
|
BuildRequires: sysuser-tools
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -153,6 +155,23 @@ Group: System/Fhs
|
|||||||
%description -n system-user-ftp
|
%description -n system-user-ftp
|
||||||
This package provides the system account and group 'ftp'.
|
This package provides the system account and group 'ftp'.
|
||||||
|
|
||||||
|
%package -n system-user-lp
|
||||||
|
Summary: System user and group lp
|
||||||
|
Group: System/Fhs
|
||||||
|
%{sysusers_requires}
|
||||||
|
|
||||||
|
%description -n system-user-lp
|
||||||
|
This package provides the system account and group 'lp'.
|
||||||
|
|
||||||
|
%package -n system-user-nobody
|
||||||
|
Summary: System user and group nobody
|
||||||
|
Group: System/Fhs
|
||||||
|
%{sysusers_requires}
|
||||||
|
|
||||||
|
%description -n system-user-nobody
|
||||||
|
This package provides the system account and group 'nobody'.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -c -T
|
%setup -q -c -T
|
||||||
|
|
||||||
@ -170,6 +189,8 @@ This package provides the system account and group 'ftp'.
|
|||||||
%sysusers_generate_pre %{SOURCE11} wwwrun
|
%sysusers_generate_pre %{SOURCE11} wwwrun
|
||||||
%sysusers_generate_pre %{SOURCE12} mail
|
%sysusers_generate_pre %{SOURCE12} mail
|
||||||
%sysusers_generate_pre %{SOURCE13} ftp
|
%sysusers_generate_pre %{SOURCE13} ftp
|
||||||
|
%sysusers_generate_pre %{SOURCE14} lp
|
||||||
|
%sysusers_generate_pre %{SOURCE15} nobody
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_sysusersdir}
|
mkdir -p %{buildroot}%{_sysusersdir}
|
||||||
@ -179,7 +200,9 @@ mkdir -p %{buildroot}%{_localstatedir}/games
|
|||||||
mkdir -p %{buildroot}%{_localstatedir}/cache/man
|
mkdir -p %{buildroot}%{_localstatedir}/cache/man
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/lib/wwwrun
|
mkdir -p %{buildroot}%{_localstatedir}/lib/wwwrun
|
||||||
mkdir -p %{buildroot}%{_localstatedir}/spool/clientmqueue
|
mkdir -p %{buildroot}%{_localstatedir}/spool/clientmqueue
|
||||||
|
mkdir -p %{buildroot}%{_localstatedir}/spool/lpd
|
||||||
mkdir -p %{buildroot}/srv/ftp
|
mkdir -p %{buildroot}/srv/ftp
|
||||||
|
mkdir -p %{buildroot}%{_localstatedir}/lib/nobody
|
||||||
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
|
||||||
@ -193,6 +216,8 @@ install -m 644 %{SOURCE10} %{buildroot}%{_sysusersdir}/system-group-wheel.conf
|
|||||||
install -m 644 %{SOURCE11} %{buildroot}%{_sysusersdir}/system-user-wwwrun.conf
|
install -m 644 %{SOURCE11} %{buildroot}%{_sysusersdir}/system-user-wwwrun.conf
|
||||||
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/system-user-mail.conf
|
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/system-user-mail.conf
|
||||||
install -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/system-user-ftp.conf
|
install -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/system-user-ftp.conf
|
||||||
|
install -m 644 %{SOURCE14} %{buildroot}%{_sysusersdir}/system-user-lp.conf
|
||||||
|
install -m 644 %{SOURCE15} %{buildroot}%{_sysusersdir}/system-user-nobody.conf
|
||||||
|
|
||||||
%pre -n system-user-uucp -f uucp.pre
|
%pre -n system-user-uucp -f uucp.pre
|
||||||
%pre -n system-user-games -f games.pre
|
%pre -n system-user-games -f games.pre
|
||||||
@ -207,6 +232,8 @@ install -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/system-user-ftp.conf
|
|||||||
%pre -n system-user-wwwrun -f wwwrun.pre
|
%pre -n system-user-wwwrun -f wwwrun.pre
|
||||||
%pre -n system-user-mail -f mail.pre
|
%pre -n system-user-mail -f mail.pre
|
||||||
%pre -n system-user-ftp -f ftp.pre
|
%pre -n system-user-ftp -f ftp.pre
|
||||||
|
%pre -n system-user-lp -f lp.pre
|
||||||
|
%pre -n system-user-nobody -f nobody.pre
|
||||||
|
|
||||||
%files -n system-user-uucp
|
%files -n system-user-uucp
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -267,4 +294,14 @@ install -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/system-user-ftp.conf
|
|||||||
%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
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %attr(0755,lp,lp) %{_localstatedir}/spool/lpd
|
||||||
|
%{_sysusersdir}/system-user-lp.conf
|
||||||
|
|
||||||
|
%files -n system-user-nobody
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%dir %attr(0755,nobody,root) %{_localstatedir}/lib/nobody
|
||||||
|
%{_sysusersdir}/system-user-nobody.conf
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user