瀏覽代碼

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

Fix for https://github.com/serghey-rodin/vesta/issues/1437
dpeca 7 年之前
父節點
當前提交
8010f5d802
共有 1 個文件被更改,包括 4 次插入0 次删除
  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