Kaynağa Gözat

provision.pl - fixed an escape

master
gashapwn 3 yıl önce
ebeveyn
işleme
f6e1723d3d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      perl-script/provision.pl

+ 1
- 1
perl-script/provision.pl Dosyayı Görüntüle

@@ -198,7 +198,7 @@ system("chmod 770 /usr/local/sbin/ngircd-ctl");

# Disable root login
system("sed -i -e 's/^[^#]*PermitRootLogin.*\$/PermitRootLogin no/' /etc/ssh/sshd_config");
system("sed -i -e 's/^PasswordAuthentication.*$//' /etc/ssh/sshd_config");
system("sed -i -e 's/^PasswordAuthentication.*\$//' /etc/ssh/sshd_config");
system("echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config");
system("rcctl restart sshd");



Yükleniyor…
İptal
Kaydet