]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
redhat: use /sbin/nologin as a shell for lldpd
authorVincent Bernat <vincent@bernat.im>
Fri, 27 Nov 2015 06:57:14 +0000 (07:57 +0100)
committerVincent Bernat <vincent@bernat.im>
Fri, 27 Nov 2015 06:57:14 +0000 (07:57 +0100)
Fix #147

redhat/lldpd.spec

index 053184c4464172a683ac284e23b4682b62511c12..7690d967dd6a5c3f31d898a98b33f44c095b65ab 100644 (file)
@@ -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