From 8010f5d80261ed4ba9d2f2094229b283d0ab47be Mon Sep 17 00:00:00 2001 From: dpeca Date: Thu, 27 Dec 2018 20:56:14 +0100 Subject: [PATCH] CentOS7: Register /sbin/nologin and /usr/sbin/nologin Fix for https://github.com/serghey-rodin/vesta/issues/1437 --- install/vst-install-rhel.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/vst-install-rhel.sh b/install/vst-install-rhel.sh index 385534ec5..b7c2839e0 100755 --- a/install/vst-install-rhel.sh +++ b/install/vst-install-rhel.sh @@ -691,6 +691,10 @@ chmod a+x /backup # Set directory color echo 'LS_COLORS="$LS_COLORS:di=00;33"' >> /etc/profile +# Register /sbin/nologin and /usr/sbin/nologin +echo "/sbin/nologin" >> /etc/shells +echo "/usr/sbin/nologin" >> /etc/shells + # Changing default systemd interval if [ "$release" -eq '7' ]; then # Hi Lennart