Browse Source

provision.pl - adjust root login regex

master
gashapwn 3 years ago
parent
commit
8d93df3368
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      perl-script/provision.pl

+ 1
- 1
perl-script/provision.pl View File

@@ -169,7 +169,7 @@ system("rcctl enable haproxy");
system("rcctl start haproxy");

# Disable root login
system("sed -i -e 's/^[^#]*PermitRootLogin.+$/PermitRootLogin no/' /etc/apache2/httpd2.conf");
system("sed -i -e 's/^[^#]*PermitRootLogin.*\$/PermitRootLogin no/' /etc/ssh/sshd_config");

printf("\n\nInstall complete\n");
printf("==================================================\n");


Loading…
Cancel
Save