From: Vincent Bernat Date: Fri, 27 Nov 2015 06:57:14 +0000 (+0100) Subject: redhat: use /sbin/nologin as a shell for lldpd X-Git-Tag: 0.8.0~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14da0d3c30e9b74ce6e2467377573a719b7c044b;p=thirdparty%2Flldpd.git redhat: use /sbin/nologin as a shell for lldpd Fix #147 --- diff --git a/redhat/lldpd.spec b/redhat/lldpd.spec index 053184c4..7690d967 100644 --- a/redhat/lldpd.spec +++ b/redhat/lldpd.spec @@ -227,7 +227,7 @@ install -m644 %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/lldpd if getent group %lldpd_group >/dev/null 2>&1 ; then : ; else \ %{_sbindir}/groupadd -r %lldpd_group > /dev/null 2>&1 || exit 1 ; fi if getent passwd %lldpd_user >/dev/null 2>&1 ; then : ; else \ - %{_sbindir}/useradd -g %lldpd_group -M -r -s /bin/false \ + %{_sbindir}/useradd -g %lldpd_group -M -r -s /sbin/nologin \ -c "LLDP daemon" -d %lldpd_chroot %lldpd_user 2> /dev/null \ || exit 1 ; fi