Explorar el Código

CentOS7: Register /sbin/nologin and /usr/sbin/nologin

Fix for https://github.com/serghey-rodin/vesta/issues/1437
dpeca hace 7 años
padre
commit
8010f5d802
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      install/vst-install-rhel.sh

+ 4 - 0
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