From 057a9ef8e713fd3b5d7dbfe8e504bf6b31560726bbb4438ec1241df7eb9e0a5e Mon Sep 17 00:00:00 2001 From: Uwe Gansert Date: Wed, 8 Feb 2012 16:16:51 +0000 Subject: [PATCH] tftp user is needed too OBS-URL: https://build.opensuse.org/package/show/network/dnsmasq?expand=0&rev=31 --- dnsmasq.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dnsmasq.spec b/dnsmasq.spec index afe4e0f..77671fe 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -66,6 +66,10 @@ make %{?_smp_mflags} AWK=gawk all-i18n if ! /usr/bin/getent group tftp >/dev/null; then %{_sbindir}/groupadd -r tftp 2>/dev/null || : fi +if ! /usr/bin/getent passwd tftp >/dev/null; then + %{_sbindir}/useradd -c "TFTP account" -d /srv/tftpboot -G tftp -g tftp \ + -r -s /bin/false tftp 2>/dev/null || : +fi if ! /usr/bin/getent passwd dnsmasq >/dev/null; then /usr/sbin/useradd -r -d /var/lib/empty -s /bin/false -c "dnsmasq" -g nogroup -G tftp dnsmasq || : fi